f2calv/gha-release-versioning
Determines a semantic version for the current commit, optionally tags the repo with this version and creates a release.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| GITHUB_TOKEN | e.g. {{ secrets.GITHUB_TOKEN }} | yes | — |
| semVer | Pass in an externally generated semantic version, if empty then uses GitVersion. | no | "" |
| tag-prefix | Prefix the semver, e.g. 1.0.1 or v1.0.1 | no | v |
| move-major-tag | Create and/or move major version tag, e.g. when creating v1.0.2 then move v1 tag up from the v1.0.1 commit. | no | true |
| tag-and-release | Sets a Git tag and creates a corresponding release. | no | true |
| gv-config | Configuration filename that GitVersion will use. | — | GitVersion.yml |
| gv-source | Choose an installation source for GitVersion, options include container, dotnet & actions. | — | actions |
| dotnet-version | .NET SDK version to install when gv-source is 'dotnet'. | — | 10.0.x |
| generate-release-notes | Auto-generate release notes from merged PRs since the last release. | no | true |
Outputs
| name | description |
|---|---|
| version | e.g. 1.2.301, 1.2.301-feature-my-feature.12+56, etc... |
| major | e.g. 1 |
| minor | e.g. 2 |
| patch | e.g. 301 |
| release-exists | Does a GitHub Release exist with this version? |