This action looks at git tags in a repository that begin with v
, and are of format x.y.z
, where x
, y
, and z
are integers that represent the major, minor, and patch versions respectively. It then sets an output with x.y.z+1
.
The GitHub token used to authenticate with GitHub.
Required
Prefix to look for in version tags.
Required
Default Value
If unspecified, assumed to be v
.
Next build version to use.
- name: Determine next version
uses: gps/determine_next_version@master
id: next_version
with:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_PREFIX: v
- name: Tag commit
uses: gps/tag_commit@master
with:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: v${{steps.next_version.outputs.NEXT_BUILD_VERSION}}