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

Commit d510959

Browse files
chore: sync workflows
1 parent 0c3d359 commit d510959

File tree

8 files changed

+25
-71
lines changed

8 files changed

+25
-71
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,20 @@ jobs:
1010
tag:
1111
name: Add version tag
1212
runs-on: ubuntu-latest
13-
if: github.event.pull_request.merged == true && github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.event.pull_request.head.ref, 'release/')
13+
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:
1515
- name: Get version
1616
uses: technote-space/get-next-version-action@v1
1717
with:
18-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19-
if: "! startsWith(github.event.pull_request.head.ref, 'release/v')"
18+
EXCLUDE_MESSAGES: |
19+
update package version
20+
update packages
21+
if: "! startsWith(github.head_ref, 'release/v')"
2022
- name: Get version
2123
run: echo "::set-env name=NEXT_VERSION::${HEAD_REF#release/}"
2224
env:
23-
HEAD_REF: ${{ github.event.pull_request.head.ref }}
24-
if: startsWith(github.event.pull_request.head.ref, 'release/v')
25+
HEAD_REF: ${{ github.head_ref }}
26+
if: startsWith(github.head_ref, 'release/v')
2527
- uses: actions/github-script@0.4.0
2628
with:
2729
github-token: ${{ secrets.ACCESS_TOKEN }}

.github/workflows/check-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
checkVersion:
99
name: Check version
1010
runs-on: ubuntu-latest
11-
if: startsWith(github.event.pull_request.head.ref, 'release/')
11+
if: startsWith(github.head_ref, 'release/')
1212
steps:
1313
- name: Set running flag
1414
run: echo "::set-env name=RUNNING::1"

.github/workflows/ci.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
- uses: technote-space/get-git-comment-action@v1
2020
- uses: technote-space/get-diff-action@v1
2121
with:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2322
PREFIX_FILTER: assets/js/
2423
SUFFIX_FILTER: |
2524
.js
@@ -61,7 +60,6 @@ jobs:
6160
- uses: technote-space/get-git-comment-action@v1
6261
- uses: technote-space/get-diff-action@v1
6362
with:
64-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6563
PREFIX_FILTER: |
6664
configs/
6765
src/
@@ -103,7 +101,6 @@ jobs:
103101
- uses: technote-space/get-git-comment-action@v1
104102
- uses: technote-space/get-diff-action@v1
105103
with:
106-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
107104
PREFIX_FILTER: |
108105
configs/
109106
src/
@@ -148,7 +145,6 @@ jobs:
148145
- uses: technote-space/get-git-comment-action@v1
149146
- uses: technote-space/get-diff-action@v1
150147
with:
151-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
152148
PREFIX_FILTER: assets/js/
153149
SUFFIX_FILTER: |
154150
.js
@@ -235,7 +231,6 @@ jobs:
235231
- uses: technote-space/get-git-comment-action@v1
236232
- uses: technote-space/get-diff-action@v1
237233
with:
238-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
239234
PREFIX_FILTER: |
240235
configs/
241236
src/
@@ -380,8 +375,6 @@ jobs:
380375
with:
381376
files: release.zip
382377
draft: true
383-
env:
384-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
385378

386379
publishRelease:
387380
name: Create Release
@@ -416,8 +409,6 @@ jobs:
416409
if: always()
417410
steps:
418411
- uses: technote-space/workflow-conclusion-action@v1
419-
with:
420-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
421412
- uses: 8398a7/action-slack@v2
422413
with:
423414
status: failure

.github/workflows/issue-opened.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,13 @@ jobs:
99
name: Assign issues to project
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Assign issues to project
13-
uses: technote-space/create-project-card-action@v1
12+
- uses: technote-space/create-project-card-action@v1
1413
with:
1514
PROJECT: Backlog
1615
COLUMN: To do
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1816

1917
assignAuthor:
2018
name: Assign author to issue
2119
runs-on: ubuntu-latest
2220
steps:
23-
- name: Assign author to issue
24-
uses: technote-space/assign-author@v1
25-
with:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
- uses: technote-space/assign-author@v1

.github/workflows/pr-opened.yml

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ jobs:
1010
name: Assign PullRequest to Project
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Assign PullRequest to Project
14-
uses: technote-space/create-project-card-action@v1
13+
- uses: technote-space/create-project-card-action@v1
1514
with:
1615
PROJECT: Backlog
1716
COLUMN: In progress
@@ -21,37 +20,10 @@ jobs:
2120
name: Assign author to PR
2221
runs-on: ubuntu-latest
2322
steps:
24-
- name: Assign Author to PR
25-
uses: technote-space/assign-author@v1
26-
with:
27-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
- uses: technote-space/assign-author@v1
2824

2925
addLabelsByBranch:
3026
name: PR Labeler
3127
runs-on: ubuntu-latest
3228
steps:
33-
- name: PR Labeler
34-
uses: technote-space/pr-labeler-action@v3
35-
with:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
38-
checkVersion:
39-
name: Check package version
40-
runs-on: ubuntu-latest
41-
if: github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.event.pull_request.head.ref, 'release/v')
42-
steps:
43-
- name: Set running flag
44-
run: echo "::set-env name=RUNNING::1"
45-
- uses: actions/checkout@v2
46-
- name: Set running flag
47-
run: |
48-
if [[ ! -f package.json ]] || [[ $(< package.json jq -r '.version == null') == 'true' ]]; then
49-
echo "::set-env name=RUNNING::"
50-
fi
51-
52-
- name: Check package version
53-
uses: technote-space/package-version-check-action@v1
54-
with:
55-
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
56-
BRANCH_PREFIX: release/
57-
if: env.RUNNING
29+
- uses: technote-space/pr-labeler-action@v3

.github/workflows/pr-updated.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ jobs:
88
triage:
99
name: Pull Request Labeler
1010
runs-on: ubuntu-latest
11-
if: "! startsWith(github.event.pull_request.head.ref, 'release/')"
11+
if: "! startsWith(github.head_ref, 'release/')"
1212
steps:
13-
- name: Pull Request Labeler
14-
uses: actions/labeler@v2
13+
- uses: actions/labeler@v2
1514
with:
1615
repo-token: ${{ secrets.GITHUB_TOKEN }}
1716

@@ -20,26 +19,23 @@ jobs:
2019
runs-on: ubuntu-latest
2120
if: github.event.pull_request.head.user.id == github.event.pull_request.base.user.id
2221
steps:
23-
- name: Pull Request Body
24-
uses: technote-space/pr-commit-body-action@v1
22+
- uses: technote-space/pr-commit-body-action@v1
2523
with:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2724
EXCLUDE_MESSAGES: |
2825
trigger workflow
2926
update TOC
3027
update package version
3128
update wp version
3229
TITLE: '## Changes'
33-
LINK_ISSUE_KEYWORD: ${{ (startsWith(github.event.pull_request.head.ref, 'release/') && 'closes') || '' }}
30+
LINK_ISSUE_KEYWORD: ${{ (startsWith(github.head_ref, 'release/') && 'closes') || '' }}
3431
FILTER_PR: true
3532

3633
manageRelease:
3734
name: Manage release
3835
runs-on: ubuntu-latest
39-
if: "github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.event.pull_request.head.ref, 'release/') && ! startsWith(github.event.pull_request.head.ref, 'release/v')"
36+
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')"
4037
steps:
41-
- name: Manage release
42-
uses: technote-space/release-type-action@v1
38+
- uses: technote-space/release-type-action@v1
4339
with:
4440
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
4541
EXCLUDE_MESSAGES: |
@@ -49,7 +45,7 @@ jobs:
4945
checkVersion:
5046
name: Check package version
5147
runs-on: ubuntu-latest
52-
if: "github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.event.pull_request.head.ref, 'release/') && ! startsWith(github.event.pull_request.head.ref, 'release/v')"
48+
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')"
5349
steps:
5450
- name: Set running flag
5551
run: echo "::set-env name=RUNNING::1"
@@ -63,7 +59,9 @@ jobs:
6359
- name: Get version
6460
uses: technote-space/get-next-version-action@v1
6561
with:
66-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
EXCLUDE_MESSAGES: |
63+
update package version
64+
update packages
6765
if: env.RUNNING
6866
- name: Check package version
6967
uses: technote-space/package-version-check-action@v1

.github/workflows/project-card-moved.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,4 @@ jobs:
99
name: Auto card labeler
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Auto card labeler
13-
uses: technote-space/auto-card-labeler@v1
14-
with:
15-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12+
- uses: technote-space/auto-card-labeler@v1

.github/workflows/toc.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ jobs:
1010
name: TOC Generator
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: TOC Generator
14-
uses: technote-space/toc-generator@v2
13+
- uses: technote-space/toc-generator@v2
1514
with:
1615
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
1716
TARGET_BRANCH_PREFIX: release/

0 commit comments

Comments
 (0)