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 GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
Runtime
Deprecated runtime
namedescriptionrequireddefault
listArray of SemVer strings to processyes[]
fail-on-emptyIndicates 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.notrue
semvish-cleaningIndicates 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'.nofalse
ignore-prereleasesIndicates 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'.nofalse
strict-parsingIndicates if the action should interprete version strings strictly.notrue
strict-outputIndicates 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.notrue
namedescription
latestThe latest SemVer version found in 'list'.