From 231c500bfd302296ce6acf206c24f4b18e942c27 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 07:05:18 +0200 Subject: [PATCH] Auto-cancel older PR nox runs. (#1268) (#1269) (cherry picked from commit 4e4f65abdc4161d85533414338a3ba03d3c90bd0) Co-authored-by: Felix Fontein --- .github/workflows/nox.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/nox.yml b/.github/workflows/nox.yml index 606ea459..254f8425 100644 --- a/.github/workflows/nox.yml +++ b/.github/workflows/nox.yml @@ -15,6 +15,11 @@ name: nox - cron: '0 9 * * *' workflow_dispatch: +concurrency: + # Make sure there is at most one active run per PR, but do not cancel any non-PR runs + group: ${{ github.workflow }}-${{ (github.head_ref && github.event.number) || github.run_id }} + cancel-in-progress: true + jobs: nox: uses: ansible-community/antsibull-nox/.github/workflows/reusable-nox-run.yml@main