matt-usurp/Validate Semantic Version
Ensure the given version complies with semantic versioning.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Apr 19, 2026
- License
- None
Pinned Snippet
uses: matt-usurp/validate-semver@c5050374644a5ab2e03ddca02ce8d282911620ce # v3.0.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| version | The 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 | — |
Outputs
| name | description |
|---|---|
| version | The 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. |
| major | The major version extracted from the resolved version. |
| minor | The minor version extracted from the resolved version. |
| patch | The patch version extracted from the resolved version. |