Skip to content

ci: cancel superseded workflow runs with concurrency groups#35

Merged
maniramezan merged 2 commits into
mainfrom
chore/ci-concurrency
Jun 8, 2026
Merged

ci: cancel superseded workflow runs with concurrency groups#35
maniramezan merged 2 commits into
mainfrom
chore/ci-concurrency

Conversation

@maniramezan

Copy link
Copy Markdown
Owner

Summary

  • CI: cancels in-progress runs on PR branches when new commits arrive; main builds always complete
  • CodeQL: cancels duplicate push-triggered scans; scheduled weekly runs are never cancelled
  • Release Please: serializes concurrent runs (no cancellation) so no release event is dropped

Test plan

  • Push two rapid commits to a PR branch — verify the first run is cancelled and only the latest proceeds
  • Merge to main — verify both the old and new main build run to completion (no cancellation)
  • Confirm scheduled CodeQL scan is unaffected

Cancels stale PR builds when new commits are pushed. Main builds and
scheduled CodeQL scans are preserved; release-please runs are serialized
rather than cancelled to avoid dropping release events.
@maniramezan maniramezan merged commit 88cc85f into main Jun 8, 2026
@maniramezan maniramezan deleted the chore/ci-concurrency branch June 8, 2026 09:50
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