-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
31 lines (31 loc) · 1.24 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: 'Parse Semver Ref'
description: 'Parse a github ref (usually a tag) and extract the semver version, optional package scope, and optional package name.'
branding:
icon: 'tag'
color: 'black'
inputs:
ref:
description: 'The github ref to parse (e.g. refs/tags/v1.0.0, refs/tags/[email protected]).'
required: true
outputs:
ref:
description: 'The ref that was parsed'
matched:
description: '`"true"` if the ref matched the semver pattern, `"false"` otherwise.'
major:
description: 'The major version number from the tag (e.g. `1` from `refs/tags/v1.2.3`).'
minor:
description: 'The minor version number from the tag (e.g. `2` from `refs/tags/v1.2.3`).'
patch:
description: 'The patch version number from the tag (e.g. `3` from `refs/tags/v1.2.3`).'
prerelease:
description: 'The prerelease version from the tag (e.g. `alpha` from `refs/tags/v1.2.3-alpha`).'
build:
description: 'The build version from the tag (e.g. `build` from `refs/tags/v1.2.3+build`).'
name:
description: 'The package name from the tag (e.g. `pkg` from `refs/tags/[email protected]`).'
scope:
description: 'The package scope (if any) from the tag (e.g. `org` from `refs/tags/@org/[email protected]`).'
runs:
using: 'node20'
main: 'dist/index.js'