Skip to content

Commit 5114e11

Browse files
chore: sync workflows
1 parent 6ae9f56 commit 5114e11

File tree

6 files changed

+31
-14
lines changed

6 files changed

+31
-14
lines changed

.github/workflow-settings.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,13 @@
55
"update wp version",
66
"trigger workflow",
77
"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/"
917
}

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
run: echo "::set-env name=RUNNING::"
8282
if: "! env.GIT_DIFF"
8383
- 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' && ! startsWith(github.ref, 'refs/tags/') && github.event.base_ref == format('refs/heads/{0}', github.event.repository.default_branch)"
8585
run: echo "::set-env name=RUNNING::1"
8686
- name: Set running flag
8787
if: matrix.node == '12' && startsWith(github.ref, 'refs/tags/v')
@@ -144,7 +144,7 @@ jobs:
144144
${{ runner.os }}-yarn-
145145
146146
- name: Release GitHub Actions
147-
uses: technote-space/release-github-actions@v4
147+
uses: technote-space/release-github-actions@v5
148148
with:
149149
BRANCH_NAME: 'releases/${MAJOR}, gh-actions'
150150
OUTPUT_BUILD_INFO_FILENAME: build.json
@@ -259,7 +259,7 @@ jobs:
259259
env:
260260
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
261261
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
262-
if: success()
262+
if: success() && env.SLACK_WEBHOOK_URL
263263

264264
slack:
265265
name: Slack
@@ -274,4 +274,4 @@ jobs:
274274
env:
275275
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
276276
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
277-
if: env.WORKFLOW_CONCLUSION == 'failure'
277+
if: env.WORKFLOW_CONCLUSION == 'failure' && env.SLACK_WEBHOOK_URL

.github/workflows/issue-opened.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ jobs:
99
name: Assign issues to project
1010
runs-on: ubuntu-latest
1111
steps:
12+
- uses: technote-space/load-config-action@v1
13+
with:
14+
CONFIG_FILENAME: workflow-settings.json
1215
- uses: technote-space/create-project-card-action@v1
1316
with:
14-
PROJECT: Backlog
15-
COLUMN: To do
17+
PROJECT: ${{ env.PROJECT }}
18+
COLUMN: ${{ env.ISSUE_COLUMN }}
1619

1720
assignAuthor:
1821
name: Assign author to issue

.github/workflows/pr-opened.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ jobs:
1010
name: Assign PullRequest to Project
1111
runs-on: ubuntu-latest
1212
steps:
13+
- uses: technote-space/load-config-action@v1
14+
with:
15+
CONFIG_FILENAME: workflow-settings.json
1316
- uses: technote-space/create-project-card-action@v1
1417
with:
15-
PROJECT: Backlog
16-
COLUMN: In progress
18+
PROJECT: ${{ env.PROJECT }}
19+
COLUMN: ${{ env.PR_COLUMN }}
1720
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
1821

1922
assignAuthor:

.github/workflows/pr-updated.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: technote-space/pr-commit-body-action@v1
2424
with:
2525
EXCLUDE_MESSAGES: ${{ env.EXCLUDE_MESSAGES }}
26-
TITLE: '## Changes'
26+
TITLE: ${{ env.PR_BODY_TITLE }}
2727
LINK_ISSUE_KEYWORD: ${{ (startsWith(github.head_ref, 'release/') && 'closes') || '' }}
2828
FILTER_PR: true
2929

.github/workflows/toc.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ jobs:
1010
name: TOC Generator
1111
runs-on: ubuntu-latest
1212
steps:
13+
- uses: technote-space/load-config-action@v1
14+
with:
15+
CONFIG_FILENAME: workflow-settings.json
1316
- uses: technote-space/toc-generator@v2
1417
with:
1518
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 }}

0 commit comments

Comments
 (0)