Skip to content

ci: cancel superseded runs outside main - #16

Merged
ExtraToast merged 1 commit into
mainfrom
ci/cancel-superseded-runs
Oct 26, 2026
Merged

ExtraToast merged 1 commit into
mainfrom
ci/cancel-superseded-runs

Conversation

@ExtraToast

Copy link
Copy Markdown
Contributor

What

Adds the estate concurrency block to the workflows below that had none, or switches one that cancelled unconditionally to the guarded form:

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
  • .github/workflows/repository-hygiene.yml: added

Why

Every push to a pull request started a fresh run while the previous one, whose result nobody reads any more, kept its runner until it finished. Superseded runs now cancel as soon as a newer push lands. Runs on main are never cancelled mid-flight. This is the same block ~40 ci.yml files in the estate already carry.

@ExtraToast ExtraToast added the type: chore Maintenance work without intended behavior change. label Oct 26, 2026
@ExtraToast
ExtraToast merged commit 0aa9a07 into main Oct 26, 2026
7 checks passed
@ExtraToast
ExtraToast deleted the ci/cancel-superseded-runs branch October 26, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: chore Maintenance work without intended behavior change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant