From d9bec75d184a7c05f9b13bbf5f07ed5f5ecad812 Mon Sep 17 00:00:00 2001 From: Matthieu Houdebine Date: Thu, 27 Aug 2026 01:08:40 +0200 Subject: [PATCH] Add concurrency management for Github workflows --- .github/workflows/codeql.yml | 10 +++++++--- .github/workflows/dependency-review.yml | 4 ++++ .github/workflows/do-not-commit-config-yaml.yml | 4 ++++ .github/workflows/generate-linux-packages.yml | 4 ++++ .github/workflows/generate-windows-packages-debug.yml | 4 ++++ .github/workflows/generate-windows-packages.yml | 4 ++++ .github/workflows/lint-flake8.yml | 4 ++++ .github/workflows/simple-program-linux.yml | 4 ++++ .github/workflows/simple-program-macos.yml | 4 ++++ .github/workflows/simple-program-windows.yml | 4 ++++ .github/workflows/system-monitor-linux.yml | 4 ++++ .github/workflows/system-monitor-macos.yml | 4 ++++ .github/workflows/system-monitor-windows.yml | 4 ++++ .github/workflows/themes-screenshot-on-pr.yml | 7 +++++++ .github/workflows/themes-screenshot-on-push.yml | 4 ++++ 15 files changed, 66 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 135071cd5..1c9e42398 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -13,10 +13,14 @@ name: "CodeQL" on: push: - branches: [ "main" ] + branches: + - main + - 'releases/**' pull_request: - # The branches below must be a subset of the branches above - branches: [ "main" ] + +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true jobs: analyze: diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 760fb92e7..db0658bfb 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -7,6 +7,10 @@ name: 'Dependency Review' on: [pull_request] +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + permissions: contents: read diff --git a/.github/workflows/do-not-commit-config-yaml.yml b/.github/workflows/do-not-commit-config-yaml.yml index 7c097394f..8d7ea6376 100644 --- a/.github/workflows/do-not-commit-config-yaml.yml +++ b/.github/workflows/do-not-commit-config-yaml.yml @@ -5,6 +5,10 @@ on: paths: - 'config.yaml' +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: check-config: name: Check config.yaml diff --git a/.github/workflows/generate-linux-packages.yml b/.github/workflows/generate-linux-packages.yml index d2caf29c7..9c4ebb474 100644 --- a/.github/workflows/generate-linux-packages.yml +++ b/.github/workflows/generate-linux-packages.yml @@ -4,6 +4,10 @@ on: release: types: [ published ] +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + permissions: contents: write diff --git a/.github/workflows/generate-windows-packages-debug.yml b/.github/workflows/generate-windows-packages-debug.yml index 563548e17..135110597 100644 --- a/.github/workflows/generate-windows-packages-debug.yml +++ b/.github/workflows/generate-windows-packages-debug.yml @@ -4,6 +4,10 @@ on: release: types: [ published ] +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + permissions: contents: write diff --git a/.github/workflows/generate-windows-packages.yml b/.github/workflows/generate-windows-packages.yml index c37eb1aa9..61d081bc5 100644 --- a/.github/workflows/generate-windows-packages.yml +++ b/.github/workflows/generate-windows-packages.yml @@ -4,6 +4,10 @@ on: release: types: [ published ] +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + permissions: contents: write diff --git a/.github/workflows/lint-flake8.yml b/.github/workflows/lint-flake8.yml index 0cd62f2fa..363d1e354 100644 --- a/.github/workflows/lint-flake8.yml +++ b/.github/workflows/lint-flake8.yml @@ -7,6 +7,10 @@ on: - 'releases/**' pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: lint-flake8: name: Lint with flake8 diff --git a/.github/workflows/simple-program-linux.yml b/.github/workflows/simple-program-linux.yml index 2017f9ce7..cef20978b 100644 --- a/.github/workflows/simple-program-linux.yml +++ b/.github/workflows/simple-program-linux.yml @@ -7,6 +7,10 @@ on: - 'releases/**' pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: simple-program: name: Simple program (Linux) diff --git a/.github/workflows/simple-program-macos.yml b/.github/workflows/simple-program-macos.yml index fea223b4f..637267a38 100644 --- a/.github/workflows/simple-program-macos.yml +++ b/.github/workflows/simple-program-macos.yml @@ -7,6 +7,10 @@ on: - 'releases/**' pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: simple-program: name: Simple program (MacOS) diff --git a/.github/workflows/simple-program-windows.yml b/.github/workflows/simple-program-windows.yml index ef65da5de..b3f1a4514 100644 --- a/.github/workflows/simple-program-windows.yml +++ b/.github/workflows/simple-program-windows.yml @@ -7,6 +7,10 @@ on: - 'releases/**' pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: simple-program: name: Simple program (Windows) diff --git a/.github/workflows/system-monitor-linux.yml b/.github/workflows/system-monitor-linux.yml index a9d89c06b..379010671 100644 --- a/.github/workflows/system-monitor-linux.yml +++ b/.github/workflows/system-monitor-linux.yml @@ -7,6 +7,10 @@ on: - 'releases/**' pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: system-monitor: name: System monitor (Linux) diff --git a/.github/workflows/system-monitor-macos.yml b/.github/workflows/system-monitor-macos.yml index ea0110311..77ee19691 100644 --- a/.github/workflows/system-monitor-macos.yml +++ b/.github/workflows/system-monitor-macos.yml @@ -7,6 +7,10 @@ on: - 'releases/**' pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: system-monitor: name: System monitor (MacOS) diff --git a/.github/workflows/system-monitor-windows.yml b/.github/workflows/system-monitor-windows.yml index e793195c8..2700563c9 100644 --- a/.github/workflows/system-monitor-windows.yml +++ b/.github/workflows/system-monitor-windows.yml @@ -7,6 +7,10 @@ on: - 'releases/**' pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: system-monitor: name: System monitor (Windows) diff --git a/.github/workflows/themes-screenshot-on-pr.yml b/.github/workflows/themes-screenshot-on-pr.yml index f4d53050d..b1b32ebab 100644 --- a/.github/workflows/themes-screenshot-on-pr.yml +++ b/.github/workflows/themes-screenshot-on-pr.yml @@ -2,6 +2,13 @@ name: System monitor - themes screenshot (on PR) on: pull_request: + paths: + - 'library/**' + - 'res/themes/**' + +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true jobs: system-monitor-theme-screenshot: diff --git a/.github/workflows/themes-screenshot-on-push.yml b/.github/workflows/themes-screenshot-on-push.yml index a9857cd23..b5c26b8c9 100644 --- a/.github/workflows/themes-screenshot-on-push.yml +++ b/.github/workflows/themes-screenshot-on-push.yml @@ -6,6 +6,10 @@ on: - main - 'releases/**' +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: system-monitor-theme-screenshot: name: Update themes screenshot and generate list