pcs-security/Select Latest Semver
Consumes a JSON array of SemVer strings, and returns the version that is the latest. Strings with invalid SemVer versions are ignored.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| list | Array of SemVer strings to process | yes | [] |
| fail-on-empty | Indicates if the action should fail if no valid SemVer versions can be selected. If set to false, the value latest will be an empty string when no valid SemVer values can be selected. | no | true |
| semvish-cleaning | Indicates if the string cleaning function from the megawac/semvish package should be performed on the input values. This allows non-standard values such as '1' and '1.0' to be regarded as '1.0.0'. | no | false |
| ignore-prereleases | Indicates if the string cleaning function from the megawac/semvish package should be performed on the input values. This allows non-standard values such as '1' and '1.0' to be regarded as '1.0.0'. | no | false |
| strict-parsing | Indicates if the action should interprete version strings strictly. | no | true |
| strict-output | Indicates if the value returned by latest will be the original input value or converted to strictly compliant SemVer format. This flag is only useful when strict-parsing is disabled. | no | true |
Outputs
| name | description |
|---|---|
| latest | The latest SemVer version found in 'list'. |