optum/semver-cli
Semver utility action
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| command | Command | no | get |
| sub-command | The kind of increment (major|minor|patch|none) for (get|inc) commands | no | — |
| prerelease | Optional Prerelease Metadata | no | — |
| build | Optional Build Metadata | no | — |
| value | The Version (for set, parse, eq, cmp, gt, gte, lt, lte commands) or space-separated versions (for sort command) | no | — |
| compare-to | The version to compare to (for eq, cmp, gt, gte, lt, lte commands) | no | — |
| config | Path to a configuration file | no | — |
Outputs
| name | description |
|---|---|
| version | The resulting version change |
| version_docker | The resulting version change formatted to be compatible with docker tags |
| version_dotnet | The resulting version change formatted to be compatible with dotnet |
| major | If parsing, the major version |
| minor | If parsing, the minor version |
| patch | If parsing, the patch version |
| prerelease | If parsing, the prerelease version |
| build | If parsing, the build version |
| v1 | If comparing, the first version |
| v2 | If comparing, the second version |
| result | If comparing, the result of the comparison (-1|0|1) |
| command | If comparing, the comparison that was run |