Skip to content

zyactions/update-semver

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Update Semver

License: MIT CI Ubuntu macOS Windows

A GitHub Action to update floating version tag aliases.

Features

  • 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

Usage

Update aliases based on the current GITHUB_REF

steps:
  - name: Update Semver
    uses: zyactions/update-semver@v1

For 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.

Update aliases based on a specific tag

steps:
  - name: Update Semver
    uses: zyactions/update-semver@v1
    with:
      tag: 'v2.3.4'

Inputs

tag

The name of the target tag or the reference to be used to update the other tags.

For example:

  • v2.3.4
  • tags/v2.3.4
  • refs/tags/v2.3.4

Defaults to GITHUB_REF if not specified.

prefix

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.

update-minor

Enable this option to also update minor version tags. Defaults to false.

ignore-prerelease

Enable this option to ignore prerelease versions. Defaults to true.

Outputs

This action does not have any outputs.

Dependencies

This action does use the following official GitHub Actions dependencies:

Internal dependencies:

Versioning

Versions follow the semantic versioning scheme.

License

Update Semver Action is licensed under the MIT license.