A GitHub action that generates SemVer compatible tag on repository commits.
By default, the action will create git version tag per commit to primary branch. Default format of tag: rc/x.y.z
.
Any user can create [RELEASE] <anything
commit. After that action will create release/x.y
branch.
Versions in a release branch will have a format x.y.z
.
-
primary_branch
- The primary branch that will be used for setting RC tag versions
- It's optional variable, default value is
master
-
init_version
- The initial project version
- It's optional variable, default value is
0.0.0
name: My pipeline
on:
push:
branches:
- 'master'
- 'release/**'
jobs:
build:
runs-on: ubuntu-20.04
steps:
-
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set application version
id: set_version
uses: kvendingoldo/[email protected]
# any other steps