Skip to content

Commit 59dd9f6

Browse files
Merge pull request #189 from technote-space/chore/chore-sync-workflows
chore: sync workflows
2 parents c62c7a0 + 6f45fc3 commit 59dd9f6

File tree

10 files changed

+33
-4
lines changed

10 files changed

+33
-4
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ on:
22
pull_request:
33
branches:
44
- master
5+
- develop/v*
56
types: [closed]
67

78
name: Add release tag
@@ -10,6 +11,7 @@ jobs:
1011
tag:
1112
name: Add release tag
1213
runs-on: ubuntu-latest
14+
timeout-minutes: 3
1315
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/')
1416
steps:
1517
- uses: technote-space/load-config-action@v1

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

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

@@ -9,6 +9,7 @@ jobs:
99
check:
1010
name: Broken Link Check
1111
runs-on: ubuntu-latest
12+
timeout-minutes: 10
1213
steps:
1314
- uses: technote-space/auto-cancel-redundant-job@v1
1415
with:

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ jobs:
66
eslint:
77
name: ESLint
88
runs-on: ubuntu-latest
9+
timeout-minutes: 5
910
env:
1011
LINT: 1
1112
steps:
@@ -56,6 +57,7 @@ jobs:
5657
name: Coverage
5758
needs: eslint
5859
runs-on: ubuntu-latest
60+
timeout-minutes: 5
5961
strategy:
6062
matrix:
6163
node: ['11', '12']
@@ -129,6 +131,7 @@ jobs:
129131
name: Publish Package
130132
needs: cover
131133
runs-on: ubuntu-latest
134+
timeout-minutes: 5
132135
if: startsWith(github.ref, 'refs/tags/v')
133136
strategy:
134137
matrix:
@@ -212,6 +215,7 @@ jobs:
212215
name: Publish GitHub Pages
213216
needs: cover
214217
runs-on: ubuntu-latest
218+
timeout-minutes: 10
215219
if: startsWith(github.ref, 'refs/tags/v')
216220
steps:
217221
- uses: actions/checkout@v2
@@ -249,6 +253,7 @@ jobs:
249253
name: Upload build files
250254
needs: cover
251255
runs-on: ubuntu-latest
256+
timeout-minutes: 5
252257
if: startsWith(github.ref, 'refs/tags/v')
253258
steps:
254259
- uses: actions/checkout@v2
@@ -277,6 +282,7 @@ jobs:
277282
name: Create Release
278283
needs: [package, pages, releases]
279284
runs-on: ubuntu-latest
285+
timeout-minutes: 5
280286
steps:
281287
- name: Get version
282288
run: echo "::set-env name=TAG_NAME::${HEAD_REF#refs/tags/}"
@@ -303,6 +309,7 @@ jobs:
303309
name: Slack
304310
needs: publishRelease
305311
runs-on: ubuntu-latest
312+
timeout-minutes: 3
306313
if: always()
307314
steps:
308315
- uses: technote-space/workflow-conclusion-action@v1

.github/workflows/issue-opened.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
assign:
99
name: Assign issues to project
1010
runs-on: ubuntu-latest
11+
timeout-minutes: 3
1112
steps:
1213
- uses: technote-space/load-config-action@v1
1314
with:
@@ -20,5 +21,6 @@ jobs:
2021
assignAuthor:
2122
name: Assign author to issue
2223
runs-on: ubuntu-latest
24+
timeout-minutes: 3
2325
steps:
2426
- uses: technote-space/assign-author@v1

.github/workflows/pr-opened.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
if: github.event.pull_request.head.user.id == github.event.pull_request.base.user.id
1010
name: Assign PullRequest to Project
1111
runs-on: ubuntu-latest
12+
timeout-minutes: 3
1213
steps:
1314
- uses: technote-space/load-config-action@v1
1415
with:
@@ -22,11 +23,13 @@ jobs:
2223
assignAuthor:
2324
name: Assign author to PR
2425
runs-on: ubuntu-latest
26+
timeout-minutes: 3
2527
steps:
2628
- uses: technote-space/assign-author@v1
2729

2830
addLabelsByBranch:
2931
name: PR Labeler
3032
runs-on: ubuntu-latest
33+
timeout-minutes: 3
3134
steps:
3235
- uses: technote-space/pr-labeler-action@v4

.github/workflows/pr-updated.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ jobs:
66
triage:
77
name: Pull Request Labeler
88
runs-on: ubuntu-latest
9+
timeout-minutes: 3
910
if: "! startsWith(github.head_ref, 'release/')"
1011
steps:
1112
- uses: actions/labeler@v2
@@ -15,6 +16,7 @@ jobs:
1516
history:
1617
name: Pull Request Body
1718
runs-on: ubuntu-latest
19+
timeout-minutes: 3
1820
if: github.event.pull_request.head.user.id == github.event.pull_request.base.user.id
1921
steps:
2022
- uses: technote-space/load-config-action@v1
@@ -30,6 +32,7 @@ jobs:
3032
manageRelease:
3133
name: Manage release
3234
runs-on: ubuntu-latest
35+
timeout-minutes: 3
3336
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')"
3437
steps:
3538
- uses: technote-space/load-config-action@v1
@@ -43,7 +46,8 @@ jobs:
4346
checkVersion:
4447
name: Check package version
4548
runs-on: ubuntu-latest
46-
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')"
49+
timeout-minutes: 3
50+
if: "github.event.action == 'synchronize' && github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.head_ref, 'release/')"
4751
steps:
4852
- uses: technote-space/load-config-action@v1
4953
with:
@@ -61,7 +65,12 @@ jobs:
6165
uses: technote-space/get-next-version-action@v1
6266
with:
6367
EXCLUDE_MESSAGES: ${{ env.EXCLUDE_MESSAGES }}
64-
if: env.RUNNING
68+
if: "env.RUNNING && ! startsWith(github.head_ref, 'release/v')"
69+
- name: Get version
70+
run: echo "::set-env name=NEXT_VERSION::${HEAD_REF#release/}"
71+
env:
72+
HEAD_REF: ${{ github.head_ref }}
73+
if: env.RUNNING && startsWith(github.head_ref, 'release/v')
6574
- name: Check package version
6675
uses: technote-space/package-version-check-action@v1
6776
with:
@@ -73,6 +82,7 @@ jobs:
7382
checkPublish:
7483
name: Check publish
7584
runs-on: ubuntu-latest
85+
timeout-minutes: 3
7686
if: "github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.head_ref, 'release/')"
7787
steps:
7888
- name: Set running flag

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ jobs:
88
triage:
99
name: Auto card labeler
1010
runs-on: ubuntu-latest
11+
timeout-minutes: 3
1112
steps:
1213
- uses: technote-space/auto-card-labeler@v1

.github/workflows/sync-workflows.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ jobs:
99
release:
1010
name: Sync workflows
1111
runs-on: ubuntu-latest
12+
timeout-minutes: 5
1213
steps:
1314
- name: Sync workflows
14-
uses: technote-space/create-pr-action@v1
15+
uses: technote-space/create-pr-action@v2
1516
with:
1617
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
1718
EXECUTE_COMMANDS: |

.github/workflows/toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
if: github.event.pull_request.head.user.id == github.event.pull_request.base.user.id
1010
name: TOC Generator
1111
runs-on: ubuntu-latest
12+
timeout-minutes: 3
1213
steps:
1314
- uses: technote-space/load-config-action@v1
1415
with:

.github/workflows/update-dependencies.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
update:
1212
name: Update npm dependencies
1313
runs-on: ubuntu-latest
14+
timeout-minutes: 10
1415
steps:
1516
- uses: technote-space/load-config-action@v1
1617
with:

0 commit comments

Comments
 (0)