Updates version tags, creates release branches and GitHub releases
MIT License
A GitHub action that generates SemVer compatible tag on repository commits.
By default, the action will create Git version tag per commit to primary and release/*
branches. 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
main
init_version
0.0.0
enable_custom_branches
true
enable_github_releases
0.0.0
github_token
${{ secrets.GITHUB_TOKEN }}
, check examplerelease_tag_prefix
version
safe_version
java_version
name: My pipeline
on:
push:
branches:
- 'main'
- 'release/**'
jobs:
build:
runs-on: ubuntu-20.04
permissions:
contents: write
steps:
-
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Set application version
id: set_version
uses: kvendingoldo/[email protected]
with:
primary_branch: main
enable_github_releases: true
release_tag_prefix: "v"
github_token: "${{ secrets.GITHUB_TOKEN }}"
tag_prefix: "test/"
-
name: Generated version
run: echo ${{ steps.set_version.outputs.version }}
# any other steps