Skip to content
tag

GitHub Action

Major Tags Action

v1.0.3 Latest version

Major Tags Action

tag

Major Tags Action

This action adds/updates the major tags for any repository according to its minor tags

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Major Tags Action

uses: sayyid5416/[email protected]

Learn more about this action in sayyid5416/major-tags

Choose a version

About

GitHub Action to add/update the major tags for any repository based on its minor tags

  • Like if you have a release/tag with tag v2.3.5
  • It could be accessed by major version tag @v2
  • All future releases/tags with @2.*.* could be accessed by @v2
  • You can also access the specific releases/tags by full tag like @v2.3.5

Example usage

name: Update Major Version

on:
  release:
    types:
      - released                        # When new version of your action is released
  workflow_dispatch:                    # To run manually on any tag

jobs:
  update-major-version:
    runs-on: ubuntu-latest
    steps:
      - name: Update major version
        uses: sayyid5416/major-tags@v1