netchris/SemVer 2 Parse
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| value_to_parse | Value to parse | no | ${{ github.ref }} |
| run_id | GitHub run_id, typically defaulted so that it can be pulled from the github context | no | ${{ github.run_id }} |
| run_number | GitHub run_number, typically defaulted so that it can be pulled from the github context | no | ${{ github.run_number }} |
| run_attempt | GitHub run_attempt, typically defaulted so that it can be pulled from the github context | no | ${{ github.run_attempt }} |
Outputs
| name | description |
|---|---|
| value_to_parse | The value to parse |
| semver_version | The fully matched version |
| major_version | The major version |
| minor_version | The minor version |
| patch_version | The patch version |
| pre_release_version | The pre-release version |
| build_metadata | The build metadata |
| major_minor_version | Returns any matching MajorVersion.MinorVersion pattern whether the input is valid SemVer or not. Useful for development releases whee patch and prerelease values will be provided programmatically. |
| fallback_version | A best-effort at returning a SemVer-compatible version |
| dotnet_assembly_version | A version compatible with versioning .NET assemblies |
| nuget_version | A version compatible with versioning NuGet packages |