From 5a4e5777ba564c080207ac4765a14dbb7611e303 Mon Sep 17 00:00:00 2001 From: LucaCappelletti94 Date: Tue, 22 Sep 2026 20:58:09 +0200 Subject: [PATCH] CI: Cancel superseded pull request runs --- .github/workflows/audit.yml | 5 +++++ .github/workflows/license.yml | 5 +++++ .github/workflows/rust.yml | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index d28b1b8ba..04be501b0 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -39,6 +39,11 @@ on: permissions: contents: read +# Only PR runs are disposable. Main, schedule and merge-queue runs keep their verdicts. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: audit: runs-on: ubuntu-latest diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml index 031e2143c..91163941b 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -25,6 +25,11 @@ on: pull_request: merge_group: +# Only PR runs are disposable. Main, schedule and merge-queue runs keep their verdicts. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: rat: diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e3531be94..d0913cd81 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -29,6 +29,11 @@ on: permissions: contents: read +# Only PR runs are disposable. Main, schedule and merge-queue runs keep their verdicts. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: codestyle: runs-on: ubuntu-latest