Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 13, 2025

Ensures only one CI pipeline runs at a time on main branch to prevent concurrent deployments. Other branches (PRs) continue to run in parallel.

Changes

  • Added concurrency group to ci.yml workflow
    • main branch: all runs share group ci-main, enforcing serialization
    • Other branches: unique group per ref via format('ci-{0}', github.ref), allowing parallelism
    • cancel-in-progress: true cancels stale runs when new commits arrive
concurrency:
  group: ${{ github.ref == 'refs/heads/main' && 'ci-main' || format('ci-{0}', github.ref) }}
  cancel-in-progress: true
Original prompt

Can you update the CI to ensure that there is a single pipeline running at the time when on main. Other branches can run in parallel.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Update CI to enforce single pipeline on main branch Add concurrency control to serialize CI runs on main branch Dec 13, 2025
Copilot AI requested a review from meziantou December 13, 2025 16:11
@meziantou meziantou marked this pull request as ready for review December 13, 2025 17:14
@meziantou meziantou merged commit 55b500e into main Dec 13, 2025
13 of 26 checks passed
@meziantou meziantou deleted the copilot/update-ci-pipeline-run branch December 13, 2025 17:20
This was referenced Dec 13, 2025
This was referenced Dec 25, 2025
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