-
Notifications
You must be signed in to change notification settings - Fork 4
/
action.yml
62 lines (61 loc) · 1.85 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
name: 'Tag version commit'
description: 'tag commits whose title matches a version regex'
outputs:
tag:
description: |
The tag that has been created, or an empty string or not tag was created.
message:
description: |
The message of the tag that has been created, if annotated.
commit:
description: |
The commit that was tagged, or an empty string or not tag was created.
inputs:
token:
description: |
GitHub token, required for permission to create a tag.
required: true
version_regex:
description: |
The version regex to use for detecting version in commit messages.
The regex has to contain either 0 or 1 capture group.
required: false
default: '^[0-9]+\.[0-9]+\.[0-9]+$'
version_assertion_command:
description: |
Command to run to validate the version, e.g. compare against a version file.
Use "$version" in the command and it will be replaced by the new version, without the prefix.
required: false
default: ''
version_tag_prefix:
description: |
A prefix to prepend to the detected version number to create the tag (e.g. "v").
required: false
default: ''
commit:
description: |
Commit SHA to use for checking version.
HEAD commit will be used if the value is empty (default).
required: false
default: ''
check_entire_commit_message:
description: |
Check the entire commit message, not just the title, for a matching version.
required: false
default: 'false'
annotated:
description: |
Whether to create an annotated tag, using the commit body as the message.
required: false
default: 'false'
dry_run:
description: |
Do everything except actually create the tag.
required: false
default: 'false'
runs:
using: 'node12'
main: 'dist/index.js'
branding:
icon: 'tag'
color: 'purple'