Repository navigation
ci: add a concurrency group to the CI workflow - #573
Conversation
Group runs by workflow and ref, and cancel an in-progress run when a newer one is queued for the same pull request or merge group. Pushes and manual dispatches still run to completion, so every commit on main keeps a full CI result. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Merging this PR will not alter performance
|
Add a concurrency group to the CI workflow, keyed on workflow and ref.
Pushing several times to a pull request currently leaves every older CI run going, which uses runner time on results nobody will look at. With this change, a new run on a pull request cancels the one already in progress for that ref. Pushes to
mainand manual dispatches are never cancelled, so every commit onmainstill gets a full CI result.The
merge_groupcheck incancel-in-progressdoes nothing for now, because the workflow doesn't listen formerge_groupevents. It is there so the behavior stays correct if a merge queue is turned on later.