Repository navigation
ci: cancel stale in-progress runs on PR pushes - #4296
Merged
Merged
Conversation
Adds workflow-level concurrency groups with cancel-in-progress scoped to pull_request events for ci.yml and semantic.yml, so a new push to a PR branch cancels the older commit's in-progress run.
erikian
marked this pull request as ready for review
June 28, 2026 01:04
erikian
approved these changes
Jun 28, 2026
3 of 5 tasks
MarshallOfSound
approved these changes
Jun 28, 2026
This was referenced Jun 28, 2026
MarshallOfSound
approved these changes
Jun 28, 2026
ckerr
approved these changes
Jun 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Erik Moura · Slack thread
Summarize your changes:
Before: pushing a new commit to a PR branch left the previous commit's CI run going, so a PR could have several redundant in-flight runs eating runners.
After: a new push to a PR branch cancels the in-progress run for the older commit. Only PR runs are cancelled; pushes to
main, version tags, and merge-queue runs are never cancelled.How: adds a workflow-level
concurrencygroup toci.ymlandsemantic.yml, keyed on${{ github.workflow }}-${{ github.head_ref || github.ref }}. Inci.yml,cancel-in-progressis gated on${{ github.event_name == 'pull_request' }}so non-PR runs are unaffected;semantic.ymlonly runs onpull_requestso it usescancel-in-progress: true.Generated by Claude Code