Skip to content

Commit 8617952

Browse files
chore: Add 'Cancel Previous Runs' step (#840)
1 parent c6e7a83 commit 8617952

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.14.2, 12, 14, 15]
2020
runs-on: ubuntu-latest
2121
steps:
22+
- name: 🛑 Cancel Previous Runs
23+
uses: styfle/[email protected]
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/[email protected]
56+
with:
57+
access_token: ${{ secrets.GITHUB_TOKEN }}
58+
4959
- name: ⬇️ Checkout repo
5060
uses: actions/checkout@v2
5161

0 commit comments

Comments
 (0)