From 68f867b9144a66814362bed44b15f1f618c86a30 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Wed, 11 Feb 2026 20:06:12 -0500 Subject: [PATCH] ci: use concurrency groups to allow updates to a branch to cancel in progress run of old version of that branch --- .github/workflows/codeql-analysis.yml | 4 ++++ .github/workflows/continuous-integration.yml | 4 ++++ .github/workflows/sonarcloud-analysis.yml | 4 ++++ .github/workflows/valgrind-analysis.yml | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index f3f9ce029..790a80a00 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -22,6 +22,10 @@ on: - '!src/res/**' - '!src/unittests/**' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: codeql: runs-on: ubuntu-latest diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 1b0488c6f..1560331e8 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -11,6 +11,10 @@ on: - "v*" pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: GIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }} PACKAGE_PREFIX: "deskflow" diff --git a/.github/workflows/sonarcloud-analysis.yml b/.github/workflows/sonarcloud-analysis.yml index 039581eee..59526d2ca 100644 --- a/.github/workflows/sonarcloud-analysis.yml +++ b/.github/workflows/sonarcloud-analysis.yml @@ -23,6 +23,10 @@ on: - '!src/res/**' - '!src/unittests/**' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: sonar: # This job would fail for contributors who open PRs as the workflow runs outside of our repo diff --git a/.github/workflows/valgrind-analysis.yml b/.github/workflows/valgrind-analysis.yml index 65640382c..68f234ea2 100644 --- a/.github/workflows/valgrind-analysis.yml +++ b/.github/workflows/valgrind-analysis.yml @@ -4,6 +4,10 @@ on: workflow_dispatch: workflow_call: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: valgrind-analysis: runs-on: ubuntu-latest