Skip to content

CI: cancel superseded runs, including when a PR merges - #288

Merged
darioalessandro merged 1 commit into
masterfrom
ci-cancel-superseded-runs
Nov 22, 2026
Merged

darioalessandro merged 1 commit into
masterfrom
ci-cancel-superseded-runs

Conversation

@darioalessandro

Copy link
Copy Markdown
Member

CI was finishing runs nobody needed anymore, and on macOS runners those minutes are the expensive ones.

What changes

  • iOS CI: pushing again to a PR cancels that PR's older run. Merging or closing a PR cancels its run too. That works through the PR's closed event: it joins the same concurrency group, cancels the running job, and its own jobs skip, so it costs almost nothing. Quick merges to master also cancel the older master run, so only the newest commit finishes.
  • App Store Release: dispatching a new release cancels one that's still running. A cancelled upload never shows up in App Store Connect. The build number from the bump stays as it was.

What was checked
Both files parse as YAML. The real check happens on this PR itself: push to it twice and the first run should show as cancelled.

🤖 Generated with Claude Code

A newer push to a PR, or merging/closing it, cancels that PR's running
iOS CI. Dispatching a new App Store release cancels one in progress.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@darioalessandro
darioalessandro merged commit df9daf9 into master Nov 22, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant