mitigram/Semantic Versioning
Detect semantic version out of tag, branch and commit information
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| prerelease | Label to use for pre-release tags (will override branch information) | no | "" |
| namespace | Namespacing prefix for environment variables, empty to disable | no | CI |
| options | Additional options to semver, -v to print out path of found binaries | no | "" |
| tags | Regular expression matching the tags that semver computation should consider as versioning tags. The default is a possibe letter v, possibly followed by some spaces, followed by a dotted version number with at least a major version number. | no | ^v?[[:space:]]*[0-9]+(\.[0-9]+(\.[0-9]+)?)? |
Outputs
| name | description |
|---|---|
| semver | Semantic Version |
| version | Version number: major.minor.patch |
| branch | Git branch |
| branch-short | Git branch short name, i.e. everything after trailing slash |
| tag | Current relevant git tag |
| commit-sha | Full git commit revision |
| commit-short-sha | Short git commit revision |