actions-marketplace-validations/Get & Manipulate Git Version

Extracts the version from github.ref.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
Runtime
Deprecated runtime

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"
version-with-dashes-not-dotsThe pushed version, with dots ("." removed, replaced with dashes ("-") for example "1-2-7
is-semverSet to true if the pushed version is a valid semver value. Undefined otherwise.
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"