From 44b441958457f8f617eed248db4b5d20842b584d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Tue, 1 Dec 2020 19:58:29 +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 c9c9eb9..5f4d03a 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -19,6 +19,11 @@ jobs: node: [10.18, 10, 12, 14, 15] 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 9575243c3ed1855efbf6a90ea5d50c73d1a55d0f Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Wed, 2 Dec 2020 12:07:32 -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 5f4d03a..72ed404 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -51,6 +51,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