fix(ci): cancel superseded workflow runs to cut Actions minutes - #174
Draft
DevSecNinja with Copilot wants to merge 2 commits into
Draft
fix(ci): cancel superseded workflow runs to cut Actions minutes#174DevSecNinja with Copilot wants to merge 2 commits into
DevSecNinja with Copilot wants to merge 2 commits into
Conversation
Copilot
AI
changed the title
[WIP] Fix CI to reduce workflow usage
fix(ci): cancel superseded workflow runs to cut Actions minutes
Jul 27, 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.
July consumed ~3513 Actions minutes, dominated by three workflows that fire on every PR push and merge: Pages (603 runs), Lint (501), E2E (360). E2E already cancels superseded runs via
concurrency; the other three had none, so rapid re-pushes (Renovate automerge, bot/Copilot PRs) ran stale commits to completion.Changes
pages.yml— addconcurrencykeyed bygithub.ref, with cancellation scoped topull_requestso in-flight production deploys tomainare never interrupted, only superseded PR preview builds:lint.yml— addconcurrency(group: lint-${{ github.ref }},cancel-in-progress: true).links.yml— addconcurrency(group: links-${{ github.ref }},cancel-in-progress: true); scheduled and PR runs use distinct refs, so the weekly link-rot job is unaffected.Notes
mainfrom PR refs; no run type is dropped, only superseded duplicates are cancelled.e2e.yml; no application code touched.