Skip to content

Commit 82b97ef

Browse files
CI: Limit concurrency to one per ref_name (#1275)
This should limit concurrency to only a single workflow run per branch (including main) to run at the same time. If we're landing multiple commits via merge queue, it should force the newest one to be tested only.
1 parent 94fcc89 commit 82b97ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/github-cxx-qt-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ on:
2626

2727
# Cancel any previous runs for the same pull request
2828
concurrency:
29-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
29+
group: ${{ github.workflow }}-${{ github.ref_name || github.run_id }}
3030
cancel-in-progress: true
3131
jobs:
3232
clang_format:

0 commit comments

Comments
 (0)