A GitHub Action to update floating version tag aliases.
- Updates floating major and minor version tag aliases for projects that follow the semantic versioning scheme.
- Fast execution
- Scales to large repositories
- Supports all platforms (Linux, macOS, Windows)
- Does not use external GitHub Actions dependencies
steps:
- name: Update Semver
uses: zyactions/update-semver@v1For example, if GITHUB_REF contains the value refs/tags/v2.3.4, the tag v2 will be updated or created to refer to the same hash.
steps:
- name: Update Semver
uses: zyactions/update-semver@v1
with:
tag: 'v2.3.4'The name of the target tag or the reference to be used to update the other tags.
For example:
v2.3.4tags/v2.3.4refs/tags/v2.3.4
Defaults to GITHUB_REF if not specified.
An optional version prefix like e.g. v or release-v. Defaults to v.
This value is used when searching for existing major- and minor- version tags and as well during initial tag creation.
Enable this option to also update minor version tags. Defaults to false.
Enable this option to ignore prerelease versions. Defaults to true.
This action does not have any outputs.
This action does use the following official GitHub Actions dependencies:
Internal dependencies:
- semver-tool (bundled)
Versions follow the semantic versioning scheme.
Update Semver Action is licensed under the MIT license.