maltoze/Get Semantic Version

Extracts the version from github.ref.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Jul 19, 2023
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: maltoze/get-version-action@6753d4cab26f73566ddc7525aeb832b6d9568957 # v1.0.1

tags can be moved; commit SHAs can't. why a SHA?

no inputs

namedescription
versionThe pushed version, for example "v1.2.7"
version-without-vThe pushed version, without the v prefix, for example "1.2.7"
majorThe semver major version, for example "1" in the case of "v1.2.3-ALPHA.0+BUILD.1"
minorThe semver minor version, for example "2" in the case of "v1.2.3-ALPHA.0+BUILD.1"
patchThe semver patch version, for example "3" in the case of "v1.2.3-ALPHA.0+BUILD.1"
prereleaseThe semver prerelease version, for example "ALPHA.0" in the case of "v1.2.3-ALPHA.0+BUILD.1"
buildThe semver build version, for example "BUILD.1" in the case of "v1.2.3-ALPHA.0+BUILD.1"