diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7f81e00883..f2fee2f8d3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,13 +1,16 @@ name: test on: pull_request + +# Cancel in progress workflows on pull_requests. +# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: test: runs-on: ubuntu-latest steps: - - name: Cancel running workflows - uses: styfle/cancel-workflow-action@0.12.0 - with: - access_token: ${{ github.token }} - name: Checkout repo uses: actions/checkout@v4 - name: Set node version