diff --git a/.github/workflows/benchmarks.yaml b/.github/workflows/benchmarks.yaml index 32db99559c..1d443b9e69 100644 --- a/.github/workflows/benchmarks.yaml +++ b/.github/workflows/benchmarks.yaml @@ -2,6 +2,13 @@ name: benchmarks on: [pull_request, workflow_dispatch] jobs: + cancel_previous: + runs-on: ubuntu-latest + steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.9.1 + with: + access_token: ${{ github.token }} bench: name: run benchmarks runs-on: ${{ matrix.os }} diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index c7cf896c7c..f19993e14c 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -12,6 +12,13 @@ env: SHELL: /bin/bash jobs: + cancel_previous: + runs-on: ubuntu-latest + steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.9.1 + with: + access_token: ${{ github.token }} lint: timeout-minutes: 10 runs-on: ubuntu-latest