Skip to content

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

Open
einarwar wants to merge 1 commit into
mainfrom
chore/ci-pr-concurrency
Open

chore(ci): cancel superseded PR workflow runs#558
einarwar wants to merge 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.

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 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
Copy link
Copy Markdown

Copilot AI left a comment

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.

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.

2 participants