Skip to content

Commit 03bea9f

Browse files
chore: Add 'Cancel Previous Runs' step (#840)
Co-authored-by: Kent C. Dodds <[email protected]>
1 parent 7fcb0f2 commit 03bea9f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/validate.yml

+10
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ jobs:
2121
react: [latest, next, experimental]
2222
runs-on: ubuntu-latest
2323
steps:
24+
- name: 🛑 Cancel Previous Runs
25+
uses: styfle/[email protected]
26+
with:
27+
access_token: ${{ secrets.GITHUB_TOKEN }}
28+
2429
- name: ⬇️ Checkout repo
2530
uses: actions/checkout@v2
2631

@@ -53,6 +58,11 @@ jobs:
5358
contains('refs/heads/master,refs/heads/beta,refs/heads/next,refs/heads/alpha',
5459
github.ref) && github.event_name == 'push' }}
5560
steps:
61+
- name: 🛑 Cancel Previous Runs
62+
uses: styfle/[email protected]
63+
with:
64+
access_token: ${{ secrets.GITHUB_TOKEN }}
65+
5666
- name: ⬇️ Checkout repo
5767
uses: actions/checkout@v2
5868

0 commit comments

Comments
 (0)