thombashi/Extracts the version from github context
Extracts the version information from github.ref property
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
no inputs
Outputs
| name | description |
|---|---|
| version | The pushed version, for example "v1.2.7" |
| version-without-v | The pushed version, without the v prefix, for example "1.2.7" |
| is-semver | Set to true if the pushed version is a valid semver value. Undefined otherwise. |
| major | The semver major version, for example "1" in the case of "v1.2.3-ALPHA.0+BUILD.1" |
| minor | The semver minor version, for example "2" in the case of "v1.2.3-ALPHA.0+BUILD.1" |
| patch | The semver patch version, for example "3" in the case of "v1.2.3-ALPHA.0+BUILD.1" |
| prerelease | The semver prerelease version, for example "ALPHA.0" in the case of "v1.2.3-ALPHA.0+BUILD.1" |
| build | The semver build version, for example "BUILD.1" in the case of "v1.2.3-ALPHA.0+BUILD.1" |
| is-prerelease | Set to true if the pushed version is a prerelease. otherwise false. |