-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
129 lines (100 loc) · 4.1 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
name: Update license copyright year(s)
description: Updates the copyright year(s) in your license file and creates a pull request.
author: Mattias Kindborg <mattias.kindborg@gmail.com> (https://twitter.com/FantasticFiasco)
runs:
using: node16
main: ./dist/index.js
branding:
icon: sunrise
color: orange
inputs:
token:
description: >
Personal access token (PAT) used when interacting with Git and GitHub.
We recommend using a service account with the least permissions necessary.
Also when generating a new PAT, select the least scopes necessary.
[Learn more about creating and using encrypted secrets](https://help.github.com/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
required: true
path:
description: >
A path or wildcard pattern specifying files to transform. Multiple paths can be specified
using literal styled YAML.
default: LICENSE
required: false
transform:
description: >
A regular expression (JavaScript flavor) describing the license transform. The
expression must have the following properties:
- A capturing group named "from", encapsulating the first year of license validity
- Written to support the RegExp flags "gmi" ("global", "multiline" and "ignore case")
The expression will be used by String.prototype.replace() to apply the
transformation.
default:
required: false
branchName:
description: The branch name. Supports substituting variable {{currentYear}}.
default: license/copyright-to-{{currentYear}}
required: false
commitTitle:
description: The git commit title. Supports substituting variable {{currentYear}}.
default: "docs(license): update copyright year(s)"
required: false
commitBody:
description: >
The git commit body that will be appended to commit title, separated by two line returns.
Supports substituting variable {{currentYear}}.
default: ""
required: false
commitAuthorName:
description: The git author name, used when committing changes to the repository.
default: "github-actions"
required: false
commitAuthorEmail:
description: The git author e-mail, used when committing changes to the repository.
default: "github-actions@github.com"
required: false
gpgPrivateKey:
description: >
The GPG private key, used in combination with gpgPassphrase when signing commits. Private keys
protected by a passphrase are supported while private keys without a passphrase are
unsupported.
default: ""
required: false
gpgPassphrase:
description: The GPG passphrase, used in combination with gpgPrivateKey when signing commits.
default: ""
required: false
prTitle:
description: The title of the new pull request. Supports substituting variable {{currentYear}}.
default: Update license copyright year(s)
required: false
prBody:
description: The contents of the pull request. Supports substituting variable {{currentYear}}.
default: ""
required: false
assignees:
description: >
Comma-separated list with usernames of people to assign when pull request is created.
default: ""
required: false
labels:
description: Comma-separated list of labels to add when pull request is created.
default: ""
required: false
outputs:
currentYear:
description: >
The current year. This output will exist if action ran successfully and licenses where
updated.
branchName:
description: >
The name of the git branch created for the purpose of updating the licenses. This output will
exist if action ran successfully and licenses where updated.
pullRequestNumber:
description: >
The number of the GitHub pull request created for the purpose of updating the licenses. This
output will exist if action ran successfully and licenses where updated.
pullRequestUrl:
description: >
The URL of the GitHub pull request created for the purpose of updating the licenses. This
output will exist if action ran successfully and licenses where updated.