actions-marketplace-validations/Validate Semantic Version
Ensure the given version complies with semantic versioning.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Apr 23, 2024
- License
- None
Pinned Snippet
uses: actions-marketplace-validations/matt-usurp_validate-semver@7bbc9584679de1aeef57aa531504ab00438481ab # no releases — HEAD as of 2026-07-13tags 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. |