diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8b15af696..3b524f9bd 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -6,6 +6,10 @@ on: pull_request: merge_group: +concurrency: + group: ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }}-{{ github.event_name }} + cancel-in-progress: true + defaults: run: shell: bash