Skip to content

fix(ci): cancel superseded workflow runs to cut Actions minutes - #174

Draft
DevSecNinja with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-ci-reduce-workflow-usage
Draft

fix(ci): cancel superseded workflow runs to cut Actions minutes#174
DevSecNinja with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-ci-reduce-workflow-usage

Conversation

Copilot AI commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

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 — add concurrency keyed by github.ref, with cancellation scoped to pull_request so in-flight production deploys to main are never interrupted, only superseded PR preview builds:
    concurrency:
      group: pages-${{ github.ref }}
      cancel-in-progress: ${{ github.event_name == 'pull_request' }}
  • lint.yml — add concurrency (group: lint-${{ github.ref }}, cancel-in-progress: true).
  • links.yml — add concurrency (group: links-${{ github.ref }}, cancel-in-progress: true); scheduled and PR runs use distinct refs, so the weekly link-rot job is unaffected.

Notes

  • Per-ref grouping isolates main from PR refs; no run type is dropped, only superseded duplicates are cancelled.
  • Mirrors the existing pattern in e2e.yml; no application code touched.

Copilot AI linked an issue Jul 27, 2026 that may be closed by this pull request
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
Copilot AI requested a review from DevSecNinja July 27, 2026 12:02
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.

fix(ci): reduce workflow usage

2 participants