actions-marketplace-validations/Standardize Version 🔢
Convert a version string from SemVer-alike into the standard human-readable format, suitable for release names/tags.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| version | Version string to standardize. Something like: "1.2.3a1" | yes | — |
| python-version | Python version to use internally | no | 3.x |
| skip-python-setup | Skip setup-python step if caller already did it | no | false |
Outputs
| name | description |
|---|---|
| v | Full version + "v" prefix - recommended for release name/tag: "v0.1" / "v1.2.3-alpha1" |
| full | Full version without "v" prefix: "0.1" / "1.2.3-alpha1" |
| number | Main numeric version without suffix: "0.1" / "1.2.3" |
| suffix | [Optional] last sub-version suffix. Example: "" / "alpha1" |
| is-pre | Is the version detected as pre-release (alpha/beta/RC)? Example: "false" / "true" |