From 03bea9fd76349f458b6aff7b472acefe1879375f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Wed, 2 Dec 2020 20:08:37 +0100 Subject: [PATCH] chore: Add 'Cancel Previous Runs' step (#840) Co-authored-by: Kent C. Dodds --- .github/workflows/validate.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 02277648..e99fa965 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -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 @@ -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