You can use Tagger either as a command line tool or an GitHub Action
This action automatically moves semantic tags. When providing the tag '1.2.3', '1' and '1.2' will be moved to the position of '1.2.3'.
This action is meant to be run when ever a release has been created.
name: move tags
on:
release:
types:
- "created"
jobs:
tags:
runs-on: ubuntu-latest
steps:
# You have to check out your repo first.
- uses: actions/checkout@v2
- uses: fischerscode/tagger@v0.2
with:
# The prefix of the semantic tags.
# Default: ''
prefix: v
# The new tag. Other tags will be moved to this position.
# If present, the leading 'refs/tags/' will be removed.
# ${{ github.ref }}
tag:
Prebuilt executables can be found here.
Automatically move semantic tags. When providing the tag '1.2.3', '1' and '1.2' will be moved to the position of '1.2.3'.
Usage: tagger <command> [arguments]
Global options:
-h, --help Print this usage information.
Available commands:
move Move the tags.
Run "tagger help <command>" for more information about a command.