Action for automatically generate next release version
Get Next Release Version Action
jobs:
get_version:
permissions:
contents: read
outputs:
version: ${{ steps.get_version.outputs.version }}
steps:
- name: Get Version
id: get_version
uses: datalens-tech/get-next-release-version-action@v1
with:
version_shift: patch
version_override: v1.0.0
release_filter_target_commitish: main
Name | Description | Default |
---|---|---|
version_shift |
Version shift, used to calculate next version [major, minor, patch] . |
minor |
version_template |
Version template to use for version parsing, must contain named groups <major> , <minor> , <patch> |
v$<major>.$<minor>.$<patch> |
version_override |
Version override, if used then will be output directly. | |
release_version_regexp |
Version regexp to use for version parsing, must contain named groups 'major', 'minor', 'patch'. | v?(?<major>[0-9]+)\.(?<minor>[0-9]+)\.(?<patch>[0-9]+).*$ |
release_filter_target_commitish |
Target commitish filter for latest release. | |
release_filter_prerelease |
Prerelease filter for latest release. | |
github_owner |
GitHub owner. | ${{ github.repository_owner }} |
github_repo |
GitHub repository. | ${{ github.event.repository.name }} |
github_token |
GitHub token. | ${{ github.token }} |
Name | Description |
---|---|
version |
Next release version. |
- nvm
- node
For all commands see Taskfile or task --list-all
.