Skip to content

Commit

Permalink
chore: Add 'Cancel Previous Runs' step (#840)
Browse files Browse the repository at this point in the history
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
  • Loading branch information
MichaelDeBoey and kentcdodds committed Dec 2, 2020
1 parent 7fcb0f2 commit 03bea9f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ jobs:
react: [latest, next, experimental]
runs-on: ubuntu-latest
steps:
- name: 馃洃 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.6.0
with:
access_token: ${{ secrets.GITHUB_TOKEN }}

- name: 猬囷笍 Checkout repo
uses: actions/checkout@v2

Expand Down Expand Up @@ -53,6 +58,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/cancel-workflow-action@0.6.0
with:
access_token: ${{ secrets.GITHUB_TOKEN }}

- name: 猬囷笍 Checkout repo
uses: actions/checkout@v2

Expand Down

0 comments on commit 03bea9f

Please sign in to comment.