Skip to content

Commit 7f9891f

Browse files
committed
Add concurrency to GitHub workflows
Enable concurrency across workflows to avoid overlapping runs: add a concurrency group (${ { github.workflow } }-${ { github.ref } }) with cancel-in-progress:true to .github/workflows/codeql-analysis.yml, .github/workflows/publish.yml, and .github/workflows/validate.yml. Also remove an extraneous blank line in the CodeQL workflow. This prevents duplicate CI runs for the same branch/ref.
1 parent f58ddbd commit 7f9891f

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@
1010
# supported CodeQL languages.
1111
#
1212
name: "CodeQL Advanced"
13-
1413
on:
1514
push:
1615
branches: ["2026.1"]
1716
pull_request:
1817
branches: ["2026.1"]
1918
schedule:
2019
- cron: "28 17 * * 3"
21-
20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.ref }}
22+
cancel-in-progress: true
2223
jobs:
2324
analyze:
2425
name: Analyze (${{ matrix.language }})

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
push:
1313
branches:
1414
- main
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
1518
jobs:
1619
publish:
1720
runs-on: ubuntu-latest

.github/workflows/validate.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
branches: ["main", "2026.1"]
1414
pull_request:
1515
types: [opened, synchronize, reopened]
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
1619
jobs:
1720
validate:
1821
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)