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 }}