From 273fc7b9d223103ea7ac3ccb591e411c89f7bd48 Mon Sep 17 00:00:00 2001 From: Thomas Osmonson Date: Mon, 14 Sep 2020 11:50:07 -0500 Subject: [PATCH] feat: add cancel action --- .github/workflows/deploy-prs.yml | 4 ++++ .github/workflows/main.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/deploy-prs.yml b/.github/workflows/deploy-prs.yml index 31822a3b..3048a69b 100644 --- a/.github/workflows/deploy-prs.yml +++ b/.github/workflows/deploy-prs.yml @@ -5,6 +5,10 @@ jobs: vercel-deployment: runs-on: ubuntu-latest steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.5.0 + with: + access_token: ${{ github.token }} - uses: actions/checkout@v2 - uses: aulneau/vercel-action@v19.0.2+3 id: vercel_deployment_preview diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ee13dfa4..03c7535a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,6 +5,10 @@ jobs: code_quality: runs-on: ubuntu-latest steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.5.0 + with: + access_token: ${{ github.token }} - name: Checkout uses: actions/checkout@v2 - name: Set Node Version