generated from technote-space/gh-actions-template
-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathaction.yml
179 lines (153 loc) · 4.31 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
name: Create PR Action
description: Run command and create Pull Request.
author: technote-space
inputs:
GITHUB_TOKEN:
description: Secret GitHub API token used to make API requests or git authentication.
default: ${{ github.token }}
required: false
API_TOKEN:
description: Secret GitHub API token used to make API requests.
required: false
PACKAGE_MANAGER:
description: Package manager to use to install dependencies.
default: ''
required: false
DELETE_PACKAGE:
description: Whether to delete package file before install packages for performance.
default: ''
required: false
INSTALL_PACKAGES:
description: Packages to be installed.
default: ''
required: false
DEV_INSTALL_PACKAGES:
description: Packages to be dev installed.
default: ''
required: false
GLOBAL_INSTALL_PACKAGES:
description: Packages to be global installed.
default: ''
required: false
EXECUTE_COMMANDS:
description: Commands to be executed.
required: true
COMMIT_MESSAGE:
description: Commit message.
required: true
COMMIT_NAME:
description: Git commit name.
default: ''
required: false
COMMIT_EMAIL:
description: Git commit email.
default: ''
required: false
PR_BRANCH_PREFIX:
description: PullRequest branch prefix.
default: 'create-pr-action/'
required: false
PR_BRANCH_NAME:
description: PullRequest branch name.
required: true
PR_TITLE:
description: PullRequest title.
required: true
PR_BODY:
description: PullRequest body.
required: false
default: |
<!-- START pr-commits -->
<!-- END pr-commits -->
## Base PullRequest
${PR_TITLE} (${PR_NUMBER_REF})
## Command results
<details>
<summary>Details: </summary>
${COMMANDS_OUTPUT}
</details>
## Changed files
<details>
<summary>${FILES_SUMMARY}: </summary>
${FILES}
</details>
<hr>
[:octocat: Repo](${ACTION_URL}) | [:memo: Issues](${ACTION_URL}/issues) | [:department_store: Marketplace](${ACTION_MARKETPLACE_URL})
PR_COMMENT_BODY:
description: PullRequest body for comment.
required: false
default: |
## Command results
<details>
<summary>Details: </summary>
${COMMANDS_OUTPUT}
</details>
## Changed files
<details>
<summary>${FILES_SUMMARY}: </summary>
${FILES}
</details>
<hr>
[:octocat: Repo](${ACTION_URL}) | [:memo: Issues](${ACTION_URL}/issues) | [:department_store: Marketplace](${ACTION_MARKETPLACE_URL})
PR_DEFAULT_BRANCH_PREFIX:
description: PullRequest branch prefix for default branch.
default: ''
required: false
PR_DEFAULT_BRANCH_NAME:
description: PullRequest branch name for default branch.
default: ''
required: false
PR_DEFAULT_BRANCH_TITLE:
description: PullRequest title for default branch.
default: ''
required: false
PR_DEFAULT_BRANCH_BODY:
description: PullRequest body for default branch.
default: ''
required: false
PR_CLOSE_MESSAGE:
description: Message body when closing PullRequest.
default: 'This PR is no longer needed because the package looks up-to-date.'
required: false
PR_DATE_FORMAT1:
description: Date format.
default: 'YYYY-MM-DD HH:mm:ss'
required: false
PR_DATE_FORMAT2:
description: Date format.
default: 'YYYY-MM-DD'
required: false
FILTER_GIT_STATUS:
description: Filter by git status. (M, D or A)
default: ''
required: false
FILTER_EXTENSIONS:
description: Filter by extensions. (e.g. md, txt)
default: ''
required: false
TARGET_BRANCH_PREFIX:
description: Filter by branch name. (e.g. release/)
default: ''
required: false
INCLUDE_LABELS:
description: Labels used to check if the PullRequest has it.
default: ''
required: false
CHECK_DEFAULT_BRANCH:
description: Whether to check default branch.
default: 'true'
required: false
ONLY_DEFAULT_BRANCH:
description: Whether not to check other than default branch.
required: false
AUTO_MERGE_THRESHOLD_DAYS:
description: Threshold days to auto merge.
default: ''
required: false
branding:
# https://feathericons.com/
icon: 'package'
color: 'orange'
runs:
using: node16
main: lib/main.js