zyactions/ZyAction: Semver
A GitHub Action that provides access to the individual parts of a SemVer2 version string.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| version | A string containing the semantic version to parse. Defaults to `GITHUB_REF` if not specified. | no | "" |
| prefixes | An optional newline separated list of version prefixes to strip from the input version (e.g. `v` or `release-v`). | no | "" |
| fail_on_error | Set `true` to fail, if the input `version` does not contain a valid semantic version. Defaults to `true`. | no | true |
Outputs
| name | description |
|---|---|
| valid | Signals, if the input `version` contained a valid semantic version. |
| version | The (sanitized) semantic version string with any prefix trimmed from it. |
| major | The major version. |
| minor | The minor version. |
| patch | The patch version. |
| prerelease | The prerelease version. |
| build | The build version. |