Skip to content

Commit f75162d

Browse files
committed
ci: improve concurrency group naming in github workflows
**Changed:** - Update concurrency group names in pre-commit and semgrep workflows to include workflow name and git ref for clearer identification and to prevent conflicts - Add merge_group event trigger to test workflow to support GitHub merge queue
1 parent e1032a9 commit f75162d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/pre-commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ on:
1818
workflow_dispatch:
1919

2020
concurrency:
21-
group: pre-commit-${{ github.run_id }}
2221
cancel-in-progress: true
22+
group: pre-commit-${{ github.workflow }}-${{ github.ref }}
2323

2424
env:
2525
PYTHON_VERSION: 3.12.6

.github/workflows/semgrep.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ on:
1616
- cron: "0 0 * * *" # Run daily at midnight UTC
1717

1818
concurrency:
19-
group: pre-commit-${{ github.run_id }}
2019
cancel-in-progress: true
20+
group: semgrep-${{ github.workflow }}-${{ github.ref }}
2121

2222
permissions:
2323
actions: read

.github/workflows/test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name: Tests
33

44
on:
5+
merge_group:
56
push:
67
branches: [main]
78
paths:

0 commit comments

Comments
 (0)