diff --git a/.github/workflows/tests_primary.yml b/.github/workflows/tests_primary.yml index b18b7716bd..845cde34e1 100644 --- a/.github/workflows/tests_primary.yml +++ b/.github/workflows/tests_primary.yml @@ -13,6 +13,12 @@ on: - main - release-* +concurrency: + # For pull requests, cancel all currently-running jobs for this workflow + # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + env: # Force terminal colors. @see https://www.npmjs.com/package/colors FORCE_COLOR: 1