forked from battila7/get-version-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
22 lines (22 loc) · 987 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: 'Get Version'
description: 'Extracts the version from github.ref.'
outputs:
version:
description: 'The pushed version, for example "v1.2.7"'
version-without-v:
description: 'The pushed version, without the v prefix, for example "1.2.7"'
is-semver:
description: 'Set to true if the pushed version is a valid semver value. Undefined otherwise.'
major:
description: 'The semver major version, for example "1" in the case of "v1.2.3-ALPHA.0+BUILD.1"'
minor:
description: 'The semver minor version, for example "2" in the case of "v1.2.3-ALPHA.0+BUILD.1"'
patch:
description: 'The semver patch version, for example "3" in the case of "v1.2.3-ALPHA.0+BUILD.1"'
prerelease:
description: 'The semver prerelease version, for example "ALPHA.0" in the case of "v1.2.3-ALPHA.0+BUILD.1"'
build:
description: 'The semver build version, for example "BUILD.1" in the case of "v1.2.3-ALPHA.0+BUILD.1"'
runs:
using: 'node12'
main: 'dist/index.js'