Commit 8dbf440
committed
Add concurrency control to prevent redundant workflow runs
Implement workflow-level concurrency control to optimize CI resource usage:
- Group by workflow name and git ref (branch/tag)
- Cancel in-progress runs when new commits are pushed
- Prevents multiple CI runs for the same branch running simultaneously
This addresses the issue where rapid pushes to the same branch would
spawn multiple workflow instances, wasting GitHub Actions runner time
and delaying feedback on the latest commit.
Example behavior:
- Push A triggers workflow run 1
- Push B to same branch triggers workflow run 2
- Run 1 is automatically cancelled, run 2 proceeds
Concurrency group format: "CI-refs/heads/branch-name"1 parent 34b750e commit 8dbf440
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
0 commit comments