From 13db0495869e93a20cb9e0259243cf9bed0842d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Tue, 1 Dec 2020 19:58:23 +0100 Subject: [PATCH 1/2] chore: Add 'Cancel Previous Runs' step --- .github/workflows/validate.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 02277648..c588a695 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 From 2b590f2ee2e2c6deb50c396570c9b931c96e1a6c Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Wed, 2 Dec 2020 12:07:26 -0700 Subject: [PATCH 2/2] Update validate.yml --- .github/workflows/validate.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index c588a695..e99fa965 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -58,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