From ac29ceb251c0173d7fd37cddb212dde8c594ca5d Mon Sep 17 00:00:00 2001 From: LucaCappelletti94 Date: Thu, 19 Nov 2026 14:20:27 +0100 Subject: [PATCH] Cancel superseded CI runs on PR branches --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6624ef2..afe09f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + env: CARGO_TERM_COLOR: always RUSTFLAGS: -D warnings