diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index c9c9eb9..72ed404 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 @@ -46,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