ci: use concurrency groups to allow updates to a branch to cancel in progress run of old version of that branch

This commit is contained in:
sithlord48
2026-02-11 20:06:12 -05:00
committed by Nick Bolton
parent dd77f79b17
commit 68f867b914
4 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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