Repository navigation
Add concurrency controls to all GitHub Actions workflows - #435
Merged
Merged
Conversation
When a push to a branch with an open PR triggers both the push and pull_request events, workflows run twice. Adding concurrency groups keyed on PR number (or ref for non-PR pushes) ensures only one run per workflow per PR, cancelling the redundant run. https://claude.ai/code/session_01TaE7GXKKdM4ro7rLTzTxKF
Replace push+pull_request triggers with pull_request only, so workflows run once per PR instead of twice (once for push, once for PR). Keeps workflow_dispatch where it existed for manual runs. https://claude.ai/code/session_01TaE7GXKKdM4ro7rLTzTxKF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds concurrency configuration to all GitHub Actions workflows to prevent multiple runs of the same workflow from executing simultaneously. This improves CI/CD efficiency by canceling in-progress runs when new commits are pushed to the same pull request or branch.
Key Changes
Added
concurrencyconfiguration block to 5 workflow files:e2e-installation-tests.ymle2e-local-tests.ymlintegration_tests.ymlmock-network-tests.ymltest-action-scripts.ymlEach workflow now includes:
cancel-in-progress: trueto automatically cancel previous runs when a new run is triggeredBenefits
https://claude.ai/code/session_01TaE7GXKKdM4ro7rLTzTxKF