diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 135071cd..1c9e4239 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 760fb92e..db0658bf 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 7c097394..8d7ea637 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 d2caf29c..9c4ebb47 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 563548e1..13511059 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 c37eb1aa..61d081bc 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 0cd62f2f..363d1e35 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 2017f9ce..cef20978 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 fea223b4..637267a3 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 ef65da5d..b3f1a451 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 a9d89c06..37901067 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 ea011031..77ee1969 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 e793195c..2700563c 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 f4d53050..b1b32eba 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 a9857cd2..b5c26b8c 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