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

Commit e461654

Browse files
committed
build(ci): Cancel stale jobs.
1 parent a8ac0c1 commit e461654

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/test-build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ on:
3131
# Be sure to update both workflow files if you edit any env or trigger config
3232

3333
jobs:
34+
init:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Cancel Previous Runs
38+
uses: styfle/cancel-workflow-action@0.8.0
39+
with:
40+
access_token: ${{ github.token }}
3441
build:
3542
name: Run build using Node 14.x
3643
runs-on: ubuntu-latest

.github/workflows/test-code.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ on:
3131
# Be sure to update both workflow files if you edit any env or trigger config
3232

3333
jobs:
34+
init:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Cancel Previous Runs
38+
uses: styfle/cancel-workflow-action@0.8.0
39+
with:
40+
access_token: ${{ github.token }}
3441
lint:
3542
name: Run linter using Node 14.x
3643
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)