From d920d72fb2e72f026c6f24c21c9f006941e10ae6 Mon Sep 17 00:00:00 2001 From: David Badura Date: Sat, 17 Oct 2026 19:37:35 +0200 Subject: [PATCH] Cancel outdated CI runs Adds a concurrency group to the CI workflows, so a new push to a pull request or branch cancels the runs still going for the previous commit instead of letting them finish for nothing. The group is github.workflow_ref (workflow file plus ref, refs/pull//merge for pull requests), so two workflows with the same name and two fork pull requests with the same branch name never cancel each other. Release, notify and docs deploy workflows are left as they are. --- .github/workflows/coding-standard.yml | 4 ++++ .github/workflows/psalm.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/coding-standard.yml b/.github/workflows/coding-standard.yml index 3d93c9b..11a0499 100644 --- a/.github/workflows/coding-standard.yml +++ b/.github/workflows/coding-standard.yml @@ -9,6 +9,10 @@ on: - "[0-9]+.[0-9]+.x" - "renovate/*" +concurrency: + group: ${{ github.workflow_ref }} + cancel-in-progress: true + jobs: static-analysis-coding-standard: name: "Static Analysis by patchlevel/coding-standard" diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml index 9b04668..ab3c0b9 100644 --- a/.github/workflows/psalm.yml +++ b/.github/workflows/psalm.yml @@ -9,6 +9,10 @@ on: - "[0-9]+.[0-9]+.x" - "renovate/*" +concurrency: + group: ${{ github.workflow_ref }} + cancel-in-progress: true + jobs: static-analysis-psalm: name: "Static Analysis by Psalm"