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/res/**'
- '!src/unittests/**' - '!src/unittests/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
codeql: codeql:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View file

@ -11,6 +11,10 @@ on:
- "v*" - "v*"
pull_request: pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env: env:
GIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }} GIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
PACKAGE_PREFIX: "deskflow" PACKAGE_PREFIX: "deskflow"

View file

@ -23,6 +23,10 @@ on:
- '!src/res/**' - '!src/res/**'
- '!src/unittests/**' - '!src/unittests/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
sonar: sonar:
# This job would fail for contributors who open PRs as the workflow runs outside of our repo # 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_dispatch:
workflow_call: workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
valgrind-analysis: valgrind-analysis:
runs-on: ubuntu-latest runs-on: ubuntu-latest