Skip to content

Commit 395260b

Browse files
chore: sync workflows
1 parent 3c5b60b commit 395260b

File tree

5 files changed

+30
-18
lines changed

5 files changed

+30
-18
lines changed

.github/workflow-settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"EXCLUDE_MESSAGES": [
3+
"update package version",
4+
"update packages",
5+
"update wp version",
6+
"trigger workflow",
7+
"update TOC"
8+
]
9+
}

.github/workflows/add-release-tag.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ jobs:
1212
runs-on: ubuntu-latest
1313
if: github.event.pull_request.merged == true && github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.head_ref, 'release/')
1414
steps:
15+
- uses: technote-space/load-config-action@v1
16+
with:
17+
CONFIG_FILENAME: workflow-settings.json
1518
- name: Get version
1619
uses: technote-space/get-next-version-action@v1
1720
with:
18-
EXCLUDE_MESSAGES: |
19-
update package version
20-
update packages
21+
EXCLUDE_MESSAGES: ${{ env.EXCLUDE_MESSAGES }}
2122
if: "! startsWith(github.head_ref, 'release/v')"
2223
- name: Get version
2324
run: echo "::set-env name=NEXT_VERSION::${HEAD_REF#release/}"

.github/workflows/broken-link-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on:
22
schedule:
3-
- cron: 0 0 1 * *
3+
- cron: 0 0 6 * *
44
repository_dispatch:
55
types: [check-link]
66

.github/workflows/pr-updated.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@ jobs:
1717
runs-on: ubuntu-latest
1818
if: github.event.pull_request.head.user.id == github.event.pull_request.base.user.id
1919
steps:
20+
- uses: technote-space/load-config-action@v1
21+
with:
22+
CONFIG_FILENAME: workflow-settings.json
2023
- uses: technote-space/pr-commit-body-action@v1
2124
with:
22-
EXCLUDE_MESSAGES: |
23-
trigger workflow
24-
update TOC
25-
update package version
26-
update wp version
25+
EXCLUDE_MESSAGES: ${{ env.EXCLUDE_MESSAGES }}
2726
TITLE: '## Changes'
2827
LINK_ISSUE_KEYWORD: ${{ (startsWith(github.head_ref, 'release/') && 'closes') || '' }}
2928
FILTER_PR: true
@@ -33,18 +32,22 @@ jobs:
3332
runs-on: ubuntu-latest
3433
if: "github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.head_ref, 'release/') && ! startsWith(github.head_ref, 'release/v')"
3534
steps:
35+
- uses: technote-space/load-config-action@v1
36+
with:
37+
CONFIG_FILENAME: workflow-settings.json
3638
- uses: technote-space/release-type-action@v1
3739
with:
40+
EXCLUDE_MESSAGES: ${{ env.EXCLUDE_MESSAGES }}
3841
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
39-
EXCLUDE_MESSAGES: |
40-
update package version
41-
update packages
4242

4343
checkVersion:
4444
name: Check package version
4545
runs-on: ubuntu-latest
4646
if: "github.event.action == 'synchronize' && github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.head_ref, 'release/') && ! startsWith(github.head_ref, 'release/v')"
4747
steps:
48+
- uses: technote-space/load-config-action@v1
49+
with:
50+
CONFIG_FILENAME: workflow-settings.json
4851
- name: Set running flag
4952
run: echo "::set-env name=RUNNING::1"
5053
- uses: actions/checkout@v2
@@ -57,9 +60,7 @@ jobs:
5760
- name: Get version
5861
uses: technote-space/get-next-version-action@v1
5962
with:
60-
EXCLUDE_MESSAGES: |
61-
update package version
62-
update packages
63+
EXCLUDE_MESSAGES: ${{ env.EXCLUDE_MESSAGES }}
6364
if: env.RUNNING
6465
- name: Check package version
6566
uses: technote-space/package-version-check-action@v1

.github/workflows/update-dependencies.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
name: Update npm dependencies
1313
runs-on: ubuntu-latest
1414
steps:
15+
- uses: technote-space/load-config-action@v1
16+
with:
17+
CONFIG_FILENAME: workflow-settings.json
1518
- uses: technote-space/auto-cancel-redundant-job@v1
1619
with:
1720
EXCLUDE_MERGED: 'true'
@@ -49,9 +52,7 @@ jobs:
4952
- name: Get version
5053
uses: technote-space/get-next-version-action@v1
5154
with:
52-
EXCLUDE_MESSAGES: |
53-
update package version
54-
update packages
55+
EXCLUDE_MESSAGES: ${{ env.EXCLUDE_MESSAGES }}
5556
if: "env.RUNNING && ! startsWith(github.head_ref, 'release/v')"
5657
- name: Get version
5758
run: echo "::set-env name=NEXT_VERSION::${HEAD_REF#release/}"

0 commit comments

Comments
 (0)