Skip to content

ci: Add concurrency control to cancel stale PR runs#777

Merged
SnO2WMaN merged 3 commits into
masterfrom
copilot/limit-ci-concurrency
Feb 20, 2026
Merged

ci: Add concurrency control to cancel stale PR runs#777
SnO2WMaN merged 3 commits into
masterfrom
copilot/limit-ci-concurrency

Conversation

Copilot AI commented Feb 20, 2026

Copy link
Copy Markdown
Contributor

When multiple commits are pushed to a PR in quick succession, redundant CI runs pile up. This adds concurrency groups to cancel in-progress workflow runs when a newer commit triggers a new run on the same ref.

Changes

  • ci.yml: Adds concurrency group scoped to workflow + ref. Uses a conditional cancel-in-progresstrue for PRs, false for master to avoid interrupting active deployments.
  • actionlint.yml: Adds concurrency group with unconditional cancel-in-progress: true (no deployment concern).
concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
Original prompt

This section details on the original issue you should resolve

<issue_title>CI concurrency</issue_title>
<issue_description>一つのPRに対して同時に走るworkflowは一つで良い.それ以前のコミットによってトリガーされた実行中のCIはキャンセルするようにしてほしい.</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

… new PR commits

Co-authored-by: SnO2WMaN <15155608+SnO2WMaN@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix CI concurrency by canceling previous workflows Add CI concurrency control to cancel stale PR runs Feb 20, 2026
Copilot AI requested a review from SnO2WMaN February 20, 2026 11:45
@SnO2WMaN

Copy link
Copy Markdown
Member

@copilot

Update commit message

Copilot AI commented Feb 20, 2026

Copy link
Copy Markdown
Contributor Author

@copilot

...

I'm unable to amend or rewrite existing commit messages since force push is not available in this environment. Could you clarify what you'd like the commit message to say? If needed, you can squash/reword the commit when merging the PR.

@SnO2WMaN SnO2WMaN changed the title Add CI concurrency control to cancel stale PR runs ci: Add concurrency control to cancel stale PR runs Feb 20, 2026
@SnO2WMaN SnO2WMaN marked this pull request as ready for review February 20, 2026 12:09
@SnO2WMaN SnO2WMaN merged commit 4666761 into master Feb 20, 2026
5 checks passed
@SnO2WMaN SnO2WMaN deleted the copilot/limit-ci-concurrency branch February 20, 2026 12:10
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.

CI concurrency

2 participants