generated from im-open/javascript-action-template
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathaction.yml
63 lines (46 loc) · 2.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
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
name: git-version-lite
description: An action to calculate the next tag for the repository based on commit messages.
inputs:
calculate-prerelease-version:
description: 'Flag indicating whether to calculate a pre-release version rather than a release version. Accepts: true|false.'
required: false
default: 'false'
branch-name:
description: 'The name of the branch the tag is being generated for. Required when calculating the pre-release version.'
required: false
tag-prefix:
description: 'By default the action strips the prefixes off, but any value provided here will be prepended to the next calculated version.'
required: false
default: 'v'
fallback-to-no-prefix-search:
description: 'Flag indicating whether it should fallback to a prefix-less search if no tags are found with the current prefix. Helpful when starting to use prefixes with tags. Accepted values: true|false.'
required: false
default: 'true'
default-release-type:
description: 'The default release type that should be used when no tags are detected. Defaults to major. Accepted values: major|minor|patch'
required: false
default: 'major'
outputs:
NEXT_VERSION:
description: 'The calculated next version.'
NEXT_VERSION_NO_PREFIX:
description: 'The calculated next version without the tag prefix.'
NEXT_MINOR_VERSION:
description: 'The next major.minor version.'
NEXT_MINOR_VERSION_NO_PREFIX:
description: 'The next major.minor version without the tag prefix.'
NEXT_MAJOR_VERSION:
description: 'The next major version.'
NEXT_MAJOR_VERSION_NO_PREFIX:
description: 'The next major version without the tag prefix.'
PRIOR_VERSION:
description: 'The previous major.minor.patch version.'
PRIOR_VERSION_NO_PREFIX:
description: 'The previous major.minor.patch version without the tag prefix.'
NEXT_RELEASE_VERSION:
description: 'The calculated next release version. This version will not contain the branch when calculating a pre-release version.'
NEXT_RELEASE_VERSION_NO_PREFIX:
description: 'The calculated next release version without the tag prefix. This version will not contain the branch when calculating a pre-release version.'
runs:
using: 'node20'
main: 'dist/index.js'