matt-usurp/Validate Semantic Version

Ensure the given version complies with semantic versioning.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Apr 19, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: matt-usurp/validate-semver@c5050374644a5ab2e03ddca02ce8d282911620ce # v3.0.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
versionThe version you wish to validate. This can be semantic version compliant string with or without the "v" prefix. Optionally this can be a "git-ref" pointing to a tag where the tag name is a semver compliant version string. yes
namedescription
versionThe version after it has been cleansed and validated. This value has been stripped of any prefixes and is a raw semver string without the "v" prefix.
majorThe major version extracted from the resolved version.
minorThe minor version extracted from the resolved version.
patchThe patch version extracted from the resolved version.