Fetch latest version from tags and increment it based on pull request labels.
Increments based on the given fragment.
0.1.6 -> 0.1.7
0.1.6 -> 0.2.0
0.1.6 -> 1.0.0
If trigger on pull_request
, will extract the hightest fragment from the assigned labels names.
If triggered on repository_dispatch
, a fragment can be specified in the client_payload
Required The github token.
The version used if none is found. Default "$prefix1.0.0"
.
Custom version to use instead of searching in the tags.
Prefix in front of version. Default ""
.
Example Prefix "v"
-> Version "v0.1.0"
Default increment fragment if none is found in pull_request.labels
or client_payload
. Default "bug"
.
The incremented version
- uses: actions/version-managment@v1
id: version
with:
token: ${{secrets.GITHUB_TOKEN}}
fallback: v0.1.0
prefix: v