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

Commit 3f10885

Browse files
chore: sync workflows
1 parent a892f22 commit 3f10885

File tree

10 files changed

+42
-5
lines changed

10 files changed

+42
-5
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 8 * *
3+
- cron: 21 9 26 * *
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/check-version.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
checkVersion:
99
name: Check version
1010
runs-on: ubuntu-latest
11+
timeout-minutes: 3
1112
if: startsWith(github.head_ref, 'release/')
1213
steps:
1314
- uses: technote-space/load-config-action@v1

.github/workflows/ci.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
eslint:
1111
name: ESLint
1212
runs-on: ubuntu-latest
13+
timeout-minutes: 5
1314
env:
1415
LINT: 1
1516
steps:
@@ -54,6 +55,7 @@ jobs:
5455
phpcs:
5556
name: PHP Code Sniffer
5657
runs-on: ubuntu-latest
58+
timeout-minutes: 5
5759
env:
5860
LINT: 1
5961
steps:
@@ -95,6 +97,7 @@ jobs:
9597
phpmd:
9698
name: PHPMD
9799
runs-on: ubuntu-latest
100+
timeout-minutes: 5
98101
env:
99102
LINT: 1
100103
steps:
@@ -138,6 +141,7 @@ jobs:
138141
name: Coverage
139142
needs: eslint
140143
runs-on: ubuntu-latest
144+
timeout-minutes: 5
141145
strategy:
142146
matrix:
143147
node: ['11', '12']
@@ -209,6 +213,7 @@ jobs:
209213
name: PHPUnit
210214
needs: [phpcs, phpmd]
211215
runs-on: ubuntu-16.04
216+
timeout-minutes: 5
212217
services:
213218
mysql:
214219
image: mysql
@@ -271,6 +276,13 @@ jobs:
271276
restore-keys: |
272277
${{ runner.os }}-composer-
273278
if: env.RUNNING
279+
- uses: actions/cache@v1
280+
with:
281+
path: .plugin
282+
key: plugin-cache-${{ github.run_id }}
283+
restore-keys: |
284+
plugin-cache-
285+
if: env.RUNNING && matrix.ACTIVATE_POPULAR_PLUGINS == 1
274286
- name: Prepare setting
275287
run: git clone --depth=1 https://github.com/wp-content-framework/travis-ci.git travis-ci && bash travis-ci/bin/prepare.sh
276288
env:
@@ -302,6 +314,7 @@ jobs:
302314
name: Publish GitHub Pages
303315
needs: [cover, phpunit]
304316
runs-on: ubuntu-latest
317+
timeout-minutes: 10
305318
if: startsWith(github.ref, 'refs/tags/v')
306319
steps:
307320
- name: Set running flag
@@ -318,6 +331,7 @@ jobs:
318331
- uses: technote-space/load-config-action@v1
319332
with:
320333
CONFIG_FILENAME: gh-pages.json
334+
if: env.RUNNING
321335
- name: Get Yarn Cache Directory
322336
id: yarn-cache
323337
run: echo "::set-output name=dir::$(yarn cache dir)"
@@ -334,8 +348,6 @@ jobs:
334348
run: |
335349
git clone --depth=1 https://github.com/wp-content-framework/travis-ci.git travis-ci
336350
bash travis-ci/bin/deploy/gh-pages.sh
337-
env:
338-
TRAVIS_BUILD_DIR: ${{ github.workspace }}
339351
if: env.RUNNING
340352
- name: Deploy
341353
uses: JamesIves/github-pages-deploy-action@releases/v3
@@ -349,6 +361,7 @@ jobs:
349361
name: Upload build files
350362
needs: [cover, phpunit]
351363
runs-on: ubuntu-16.04
364+
timeout-minutes: 5
352365
if: startsWith(github.ref, 'refs/tags/v')
353366
steps:
354367
- uses: actions/checkout@v2
@@ -381,6 +394,7 @@ jobs:
381394
name: Create Release
382395
needs: [pages, releases]
383396
runs-on: ubuntu-latest
397+
timeout-minutes: 5
384398
steps:
385399
- name: Get version
386400
run: echo "::set-env name=TAG_NAME::${HEAD_REF#refs/tags/}"
@@ -407,6 +421,7 @@ jobs:
407421
name: Slack
408422
needs: publishRelease
409423
runs-on: ubuntu-latest
424+
timeout-minutes: 3
410425
if: always()
411426
steps:
412427
- 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/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
@@ -17,6 +17,7 @@ jobs:
1717
update:
1818
name: Update dependencies
1919
runs-on: ubuntu-latest
20+
timeout-minutes: 10
2021
steps:
2122
- uses: technote-space/load-config-action@v1
2223
with:

0 commit comments

Comments
 (0)