Skip to content

chore(ci): cancel superseded PR workflow runs#558

Merged
einarwar merged 1 commit into
mainfrom
chore/ci-pr-concurrency
Jun 2, 2026
Merged

chore(ci): cancel superseded PR workflow runs#558
einarwar merged 1 commit into
mainfrom
chore/ci-pr-concurrency

Conversation

@einarwar

Copy link
Copy Markdown
Contributor

Adds a concurrency group keyed by PR number to the on-pull-request workflow:

concurrency:
  group: pr-${{ github.event.pull_request.number }}
  cancel-in-progress: true

When new commits are pushed to a PR, any still-running checks from earlier commits are cancelled. This saves runner minutes and gives quicker feedback on the latest commit.

Only applied to the PR workflow for now — pushes to main are intentionally left to run to completion to avoid interrupting releases/deploys.

@einarwar einarwar requested a review from a team as a code owner May 19, 2026 13:12
@einarwar einarwar requested a review from Copilot May 19, 2026 13:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds GitHub Actions workflow-level concurrency to the PR CI workflow so that newer commits cancel any still-running runs from older commits on the same PR, reducing redundant runner usage and ensuring the latest commit gets feedback fastest.

Changes:

  • Introduced a concurrency group keyed by PR number in the on-pull-request workflow.
  • Enabled cancel-in-progress: true so superseded PR workflow runs are automatically cancelled.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@einarwar einarwar force-pushed the chore/ci-pr-concurrency branch 3 times, most recently from 91fc06c to ffd3ba9 Compare June 2, 2026 09:49

@sutne sutne left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like desirable behaviour 🚀 very nice!

Add a concurrency group keyed by PR number with cancel-in-progress
enabled, so pushing new commits to a PR cancels any still-running
checks from earlier commits. Saves runner minutes and gives quicker
feedback on the latest commit.
@einarwar einarwar force-pushed the chore/ci-pr-concurrency branch from ffd3ba9 to 122db46 Compare June 2, 2026 12:43
@einarwar einarwar enabled auto-merge (rebase) June 2, 2026 12:44
@einarwar einarwar merged commit c0e9080 into main Jun 2, 2026
10 checks passed
@einarwar einarwar deleted the chore/ci-pr-concurrency branch June 2, 2026 12:44
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.

3 participants