Skip to content

Commit ab16ee4

Browse files
chore: Add 'Cancel Previous Runs' step (#167)
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
1 parent 93fce77 commit ab16ee4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/validate.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919
node: [10.18, 10, 12, 14, 15]
2020
runs-on: ubuntu-latest
2121
steps:
22+
- name: 🛑 Cancel Previous Runs
23+
uses: styfle/cancel-workflow-action@0.6.0
24+
with:
25+
access_token: ${{ secrets.GITHUB_TOKEN }}
26+
2227
- name: ⬇️ Checkout repo
2328
uses: actions/checkout@v2
2429

@@ -46,6 +51,11 @@ jobs:
4651
contains('refs/heads/master,refs/heads/beta,refs/heads/next,refs/heads/alpha',
4752
github.ref) && github.event_name == 'push' }}
4853
steps:
54+
- name: 🛑 Cancel Previous Runs
55+
uses: styfle/cancel-workflow-action@0.6.0
56+
with:
57+
access_token: ${{ secrets.GITHUB_TOKEN }}
58+
4959
- name: ⬇️ Checkout repo
5060
uses: actions/checkout@v2
5161

0 commit comments

Comments
 (0)