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