This action gets the current tag, and returns it. Supports prefix for mono-repo and t/v based tags.
Optional. Version prefix used to create tag. Usually empty or v
or =
. Prefix is removed from output version
Optional. Include t
and v
in prefix. Will return tag with the t
and v
.
The full version number produced by incrementing the semantic version number of the latest tag according to the bump
input. For instance, given 12.4.1
and bump: minor
, 12.5.0
.
Get a version
- id: version
uses: arago/semver-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- run: echo "${{ steps.version.outputs.version }}"
Get version with prefix and tag types (t
and v
)
- id: version
uses: arago/semver-release-action@v1
with:
prefix: component@
include_tag_type: true
github_token: ${{ secrets.GITHUB_TOKEN }}
- run: echo "${{ steps.version.outputs.version }}" # Gets component@t* or component@v*. Returns t* or v*