Skip to content

Add concurrency control to cancel stale PR workflow runs#271

Merged
letmaik merged 3 commits intomainfrom
copilot/update-ci-workflow-concurrency
Jan 24, 2026
Merged

Add concurrency control to cancel stale PR workflow runs#271
letmaik merged 3 commits intomainfrom
copilot/update-ci-workflow-concurrency

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 24, 2026

Adds concurrency grouping to the CI workflow to automatically cancel in-progress runs when new commits are pushed to a PR.

Changes

  • Added concurrency block to .github/workflows/ci.yml:
    • Groups runs by workflow-name + (PR-branch || git-ref)
    • Enables cancel-in-progress: true

Implementation

concurrency:
  group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  cancel-in-progress: true

For PRs, github.head_ref groups by branch. For push/tag events, github.ref provides the grouping key.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: letmaik <530988+letmaik@users.noreply.github.com>
Copilot AI changed the title [WIP] Update CI workflow to cancel old in-progress runs Add concurrency control to cancel stale PR workflow runs Jan 24, 2026
Copilot AI requested a review from letmaik January 24, 2026 14:38
@letmaik letmaik marked this pull request as ready for review January 24, 2026 15:06
@letmaik letmaik merged commit 0a60d64 into main Jan 24, 2026
40 of 50 checks passed
@letmaik letmaik deleted the copilot/update-ci-workflow-concurrency branch January 24, 2026 15:06
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