Skip to content

Set concurrency limit of 1 for deploy-development and deploy-production jobs#883

Merged
BenjaminMichaelis merged 2 commits intomainfrom
copilot/set-github-actions-concurrency
Feb 26, 2026
Merged

Set concurrency limit of 1 for deploy-development and deploy-production jobs#883
BenjaminMichaelis merged 2 commits intomainfrom
copilot/set-github-actions-concurrency

Conversation

Copy link
Contributor

Copilot AI commented Feb 26, 2026

Concurrent deploy jobs (e.g. from rapid pushes or manual triggers) could race against each other, causing unpredictable deployment state for both dev and prod environments.

Changes

  • Added concurrency blocks to deploy-development and deploy-production jobs in Build-Test-And-Deploy.yml
    • Fixed group names (deploy-development, deploy-production) scope the lock globally across all workflow runs
    • cancel-in-progress: false queues new runs rather than cancelling the in-flight deployment
concurrency:
  group: deploy-development   # or deploy-production
  cancel-in-progress: false
Original prompt

Set the GitHub actions concurrency (https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/control-workflow-concurrency) for deploy development jobs that can run at the same time even between workflows as 1 and the same for deploy prod.


💡 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: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
Copilot AI changed the title [WIP] Configure concurrency for deploy development and prod jobs Set concurrency limit of 1 for deploy-development and deploy-production jobs Feb 26, 2026
@BenjaminMichaelis BenjaminMichaelis marked this pull request as ready for review February 26, 2026 12:37
Copilot AI review requested due to automatic review settings February 26, 2026 12:37
Copy link
Contributor

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

This PR adds concurrency controls to the deployment jobs in the GitHub Actions workflow to prevent race conditions when multiple deployments are triggered simultaneously (e.g., from rapid pushes to main or manual workflow triggers).

Changes:

  • Added concurrency blocks to both deploy-development and deploy-production jobs with fixed group names and cancel-in-progress: false to queue deployments rather than cancel them

@BenjaminMichaelis BenjaminMichaelis merged commit 4f8f3bf into main Feb 26, 2026
11 checks passed
@BenjaminMichaelis BenjaminMichaelis deleted the copilot/set-github-actions-concurrency branch February 26, 2026 12:57
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