Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit 7afbe3a

Browse files
chore: sync workflows
1 parent 03e3ce5 commit 7afbe3a

File tree

7 files changed

+33
-18
lines changed

7 files changed

+33
-18
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
@@ -161,7 +161,7 @@ jobs:
161161
run: echo "::set-env name=RUNNING::"
162162
if: "! env.GIT_DIFF"
163163
- name: Set running flag
164-
if: matrix.node == '12' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
164+
if: "matrix.node == '12' && ! startsWith(github.ref, 'refs/tags/') && github.event.base_ref == format('refs/heads/{0}', github.event.repository.default_branch)"
165165
run: echo "::set-env name=RUNNING::1"
166166
- name: Set running flag
167167
if: matrix.node == '12' && startsWith(github.ref, 'refs/tags/v')
@@ -245,7 +245,7 @@ jobs:
245245
run: echo "::set-env name=RUNNING::"
246246
if: "! env.GIT_DIFF"
247247
- name: Set running flag
248-
if: matrix.ACTIVATE_POPULAR_PLUGINS == 1 && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
248+
if: "matrix.ACTIVATE_POPULAR_PLUGINS == 1 && ! startsWith(github.ref, 'refs/tags/') && github.event.base_ref == format('refs/heads/{0}', github.event.repository.default_branch)"
249249
run: echo "::set-env name=RUNNING::1"
250250
- name: Set running flag
251251
if: matrix.ACTIVATE_POPULAR_PLUGINS == 1 && startsWith(github.ref, 'refs/tags/v')
@@ -405,7 +405,7 @@ jobs:
405405
env:
406406
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
407407
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
408-
if: success()
408+
if: success() && env.SLACK_WEBHOOK_URL
409409

410410
slack:
411411
name: Slack
@@ -420,4 +420,4 @@ jobs:
420420
env:
421421
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
422422
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
423-
if: env.WORKFLOW_CONCLUSION == 'failure'
423+
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: 6 additions & 3 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:
@@ -26,4 +29,4 @@ jobs:
2629
name: PR Labeler
2730
runs-on: ubuntu-latest
2831
steps:
29-
- uses: technote-space/pr-labeler-action@v3
32+
- uses: technote-space/pr-labeler-action@v4

.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 }}

.github/workflows/update-dependencies.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,13 @@ jobs:
2222
with:
2323
EXCLUDE_MERGED: 'true'
2424
- name: Update dependencies
25-
uses: technote-space/create-pr-action@v1
25+
uses: technote-space/create-pr-action@v2
2626
with:
2727
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
2828
EXECUTE_COMMANDS: |
2929
composer bin:download
3030
composer bin:update
3131
COMMIT_MESSAGE: 'chore: update dependencies'
32-
PR_BRANCH_NAME: 'chore-update-${PR_ID}'
33-
PR_TITLE: 'chore: update dependencies (${PR_MERGE_REF})'
3432
PR_DEFAULT_BRANCH_PREFIX: release/
3533
PR_DEFAULT_BRANCH_NAME: next-${CURRENT_VERSION}
3634
PR_DEFAULT_BRANCH_TITLE: 'feat: release'

0 commit comments

Comments
 (0)