mirror of
https://github.com/hanzoai/cross-env.git
synced 2026-09-24 16:58:15 +00:00
chore: Add 'Cancel Previous Runs' step (#258)
Co-authored-by: Kent C. Dodds <[email protected]>
This commit is contained in:
committed by
GitHub
co-authored by
Kent C. Dodds
parent
e2d5ed2755
commit
b41aaa63ef
@@ -20,6 +20,11 @@ jobs:
|
||||
node: [10.14, 10, 12, 14, 15]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: 🛑 Cancel Previous Runs
|
||||
uses: styfle/[email protected]
|
||||
with:
|
||||
access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: ⬇️ Checkout repo
|
||||
uses: actions/checkout@v2
|
||||
|
||||
@@ -47,6 +52,11 @@ jobs:
|
||||
contains('refs/heads/master,refs/heads/beta,refs/heads/next,refs/heads/alpha',
|
||||
github.ref) && github.event_name == 'push' }}
|
||||
steps:
|
||||
- name: 🛑 Cancel Previous Runs
|
||||
uses: styfle/[email protected]
|
||||
with:
|
||||
access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: ⬇️ Checkout repo
|
||||
uses: actions/checkout@v2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user