File tree Expand file tree Collapse file tree 6 files changed +30
-13
lines changed Expand file tree Collapse file tree 6 files changed +30
-13
lines changed Original file line number Diff line number Diff line change 5
5
" update wp version" ,
6
6
" trigger workflow" ,
7
7
" update TOC"
8
- ]
8
+ ],
9
+ "PROJECT" : " Backlog" ,
10
+ "ISSUE_COLUMN" : " To do" ,
11
+ "PR_COLUMN" : " In progress" ,
12
+ "PR_BODY_TITLE" : " ## Changes" ,
13
+ "TOC_FOLDING" : " 1" ,
14
+ "TOC_MAX_HEADER_LEVEL" : " 3" ,
15
+ "TOC_TITLE" : " Details" ,
16
+ "BRANCH_PREFIX" : " release/"
9
17
}
Original file line number Diff line number Diff line change 81
81
run : echo "::set-env name=RUNNING::"
82
82
if : " ! env.GIT_DIFF"
83
83
- name : Set running flag
84
- if : matrix.node == '12' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
84
+ if : matrix.node == '12' && github.base_ref == format('refs/heads/{0}', github.event.repository.default_branch)
85
85
run : echo "::set-env name=RUNNING::1"
86
86
- name : Set running flag
87
87
if : matrix.node == '12' && startsWith(github.ref, 'refs/tags/v')
@@ -232,7 +232,7 @@ jobs:
232
232
env :
233
233
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
234
234
SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
235
- if : success()
235
+ if : success() && env.SLACK_WEBHOOK_URL
236
236
237
237
slack :
238
238
name : Slack
@@ -247,4 +247,4 @@ jobs:
247
247
env :
248
248
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
249
249
SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
250
- if : env.WORKFLOW_CONCLUSION == 'failure'
250
+ if : env.WORKFLOW_CONCLUSION == 'failure' && env.SLACK_WEBHOOK_URL
Original file line number Diff line number Diff line change 9
9
name : Assign issues to project
10
10
runs-on : ubuntu-latest
11
11
steps :
12
+ - uses : technote-space/load-config-action@v1
13
+ with :
14
+ CONFIG_FILENAME : workflow-settings.json
12
15
- uses : technote-space/create-project-card-action@v1
13
16
with :
14
- PROJECT : Backlog
15
- COLUMN : To do
17
+ PROJECT : ${{ env.PROJECT }}
18
+ COLUMN : ${{ env.ISSUE_COLUMN }}
16
19
17
20
assignAuthor :
18
21
name : Assign author to issue
Original file line number Diff line number Diff line change @@ -10,10 +10,13 @@ jobs:
10
10
name : Assign PullRequest to Project
11
11
runs-on : ubuntu-latest
12
12
steps :
13
+ - uses : technote-space/load-config-action@v1
14
+ with :
15
+ CONFIG_FILENAME : workflow-settings.json
13
16
- uses : technote-space/create-project-card-action@v1
14
17
with :
15
- PROJECT : Backlog
16
- COLUMN : In progress
18
+ PROJECT : ${{ env.PROJECT }}
19
+ COLUMN : ${{ env.PR_COLUMN }}
17
20
GITHUB_TOKEN : ${{ secrets.ACCESS_TOKEN }}
18
21
19
22
assignAuthor :
Original file line number Diff line number Diff line change 23
23
- uses : technote-space/pr-commit-body-action@v1
24
24
with :
25
25
EXCLUDE_MESSAGES : ${{ env.EXCLUDE_MESSAGES }}
26
- TITLE : ' ## Changes '
26
+ TITLE : ${{ env.PR_BODY_TITLE }}
27
27
LINK_ISSUE_KEYWORD : ${{ (startsWith(github.head_ref, 'release/') && 'closes') || '' }}
28
28
FILTER_PR : true
29
29
Original file line number Diff line number Diff line change @@ -10,10 +10,13 @@ jobs:
10
10
name : TOC Generator
11
11
runs-on : ubuntu-latest
12
12
steps :
13
+ - uses : technote-space/load-config-action@v1
14
+ with :
15
+ CONFIG_FILENAME : workflow-settings.json
13
16
- uses : technote-space/toc-generator@v2
14
17
with :
15
18
GITHUB_TOKEN : ${{ secrets.ACCESS_TOKEN }}
16
- TARGET_BRANCH_PREFIX : release/
17
- FOLDING : true
18
- MAX_HEADER_LEVEL : 3
19
- TOC_TITLE : Details
19
+ TARGET_BRANCH_PREFIX : ${{ env.BRANCH_PREFIX }}
20
+ FOLDING : ${{ env.TOC_FOLDING }}
21
+ MAX_HEADER_LEVEL : ${{ env.TOC_MAX_HEADER_LEVEL }}
22
+ TOC_TITLE : ${{ env.TOC_TITLE }}
You can’t perform that action at this time.
0 commit comments