-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
87 lines (83 loc) · 2.76 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Semantic Version Manager
description: Handles the semantic versioning tags for a repository
branding:
icon: check-square
color: blue
inputs:
allow-prerelease:
default: 'true'
description:
When `check-only` is set to 'true', this will allow prerelease versions to
pass. Defaults to 'true'.
required: false
check-only:
default: 'false'
description:
If set to 'true', the action will only check if the version exists and, if
so, will fail. Defaults to 'false'.
required: false
comment:
default: 'true'
description:
If set to 'true', the action will comment on the pull request indicating
if the version is valid. Defaults to 'true'.
required: false
manifest-path:
description:
The path to the manifest file that contains the version information,
relative to the root of the repository. If not set, then `version` should
be set to an explicit version in SemVer 2.0 format.
required: false
overwrite:
default: 'false'
description:
If tags already exist for the specified or inferred version, setting this
to 'true' will overwrite them. Defaults to 'false'.
required: false
push-tags:
default: 'true'
description:
If set to 'true', the action will push the tag to the repository. Defaults
to 'true'.
required: false
ref:
default: ${{ github.base_ref }}
description:
The Git ref to tag with the specified or inferred version. This defaults
to the base ref of a pull request event trigger.
required: false
token:
description: GitHub token for authentication
required: true
default: ${{ github.token }}
use-version:
description:
The version you want to explicitly use (e.g. '1.2.3-beta.4+build.5'). This
must follow SemVer standards. If not set, then `manifest-path` should be
set so the action can attempt to infer the version from the contents of
the repository.
required: false
workspace:
default: ${{ github.workspace }}
description:
The path where the repository has been cloned using the `actions/checkout`
step. If not set, then `version` should be set to an explicit version.
required: false
outputs:
major-minor-patch:
description: The major, minor, and patch versions (e.g. `1.2.3`)
major-minor:
description: The major and minor versions (e.g. `1.2`)
major:
description: The major version (e.g. `1` for `1.2.3`)
minor:
description: The minor version (e.g. `2` for `1.2.3`)
patch:
description: The patch version (e.g. `3` for `1.2.3`)
prerelease:
description: The prerelease version (e.g. `alpha.4`)
version:
description: The full semantic version (e.g. `1.2.3-alpha.4`)
runs:
using: node20
main: dist/index.js