-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat(ci): cancel in-progress PR workflows on new commit push #20265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,10 @@ on: | |
| types: | ||
| - closed | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
| cancel-in-progress: true | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unnecessary concurrency on closed-only and opened-only workflowsLow Severity The concurrency cancellation added to Additional Locations (1)Reviewed by Cursor Bugbot for commit 5491706. Configure here. |
||
|
|
||
| jobs: | ||
| cleanup: | ||
| runs-on: ubuntu-latest | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concurrency cancellation risks cancelling release preparation workflow
Medium Severity
Adding
cancel-in-progress: truetoauto-release.ymlis risky and doesn't serve the PR's stated purpose. This workflow only triggers onpull_request: types: [closed], so there's no "new commit push" scenario that would benefit from concurrency cancellation. However, if someone manually re-runs this workflow while the original is still executing (e.g., thinking it's stuck), the concurrency group (keyed ongithub.head_ref) would cancel the in-progress release preparation viacraft, potentially leaving the release in an inconsistent state.Reviewed by Cursor Bugbot for commit 5491706. Configure here.