From 1585ae38fa4cc1ce4d1d2c592427eb2063b9a14b Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Wed, 2 Mar 2022 10:19:00 -0500 Subject: [PATCH] Add PR cancel GH Action --- .github/workflows/cancel.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/cancel.yml diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml new file mode 100644 index 0000000000000..9170ee69aa060 --- /dev/null +++ b/.github/workflows/cancel.yml @@ -0,0 +1,18 @@ +name: Cancel +on: + pull_request_target: + types: + - edited + - synchronize + +jobs: + cancel: + name: "Cancel Previous Runs" + runs-on: ubuntu-latest + timeout-minutes: 2 + steps: + - uses: styfle/cancel-workflow-action@0.9.1 + with: + # You can find workflow ids here: https://api.github.com/repos/vercel/turborepo/actions/workflows + workflow_id: 13880958, 16865593 + access_token: ${{ github.token }}