This action locates the current version of the repository using its tags, increments it based on the inputs, then creates a tag for that new version at the current commit. Use it to automate the release deployment of a project.
Token to use to push to the repo. Pass in using secrets.GITHUB_TOKEN
:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Version prefix used to create tag, default value test
:
with:
PREFIX: test
If specified, only tags merged to the same branch will be considered. Useful for maintenance branches. Note: this requires fetching the history when checking out:
with:
PER_BRANCH: testing
If true
, only calculate the new version and exit successfully, default value false
.
with:
DRY_RUN: false
jobs:
tag:
runs-on: ubuntu-latest
steps:
- name: Tagging
uses: steplix/cicd-incremental-versioning@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}