maltoze/Get Semantic Version
Extracts the version from github.ref.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Jul 19, 2023
- License
- MIT
Pinned Snippet
uses: maltoze/get-version-action@6753d4cab26f73566ddc7525aeb832b6d9568957 # v1.0.1tags can be moved; commit SHAs can't. why a SHA?
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" |
| 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" |