Add concurrency control to cancel in-progress PR workflows#976
Add concurrency control to cancel in-progress PR workflows#976bnbarham merged 1 commit intoswiftlang:mainfrom
Conversation
45a96eb to
630052b
Compare
|
If this change looks good, I think we could also consider applying the same setup to the |
|
We should look at adding this directly in the swiftlang/github-workflow repository. |
|
However, it's ok to take this now in this repository. |
Yes, as you mentioned, it would be even better if we could apply this change across the board in |
Yes, that would be a great help. Thank you! |
|
I’ve opened a replacement PR in |
|
Sorry about that — I tried making changes over in |
|
Happy to take this while we work out something for github-workflows regardless. Same for |
When updating a pull request that's already open, each new commit can trigger a workflow. If the PR author doesn't have permission to cancel workflows, this can lead to unnecessary executions.
To avoid redundant executions and reduce resource usage, this change cancels any in-progress workflow for the same pull request when a new one is triggered by a commit push, ensuring only one active workflow per PR.