mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-08-26 09:03:56 +00:00
Every push to a PR started a new CI run while the previous one kept running to completion on the self-hosted pool. Only the newest commit matters, so the earlier runs were holding runners for results nobody would read. Adds a top-level concurrency group keyed on the PR number, falling back to the ref for push-to-main. This follows the pattern OpenSandbox uses across its CI workflows, and is byte-identical to the block already running in ocr-review.yml, so it reuses the repo's existing idiom rather than introducing a second one. Left the other workflows alone deliberately. deploy-pages.yml already sets cancel-in-progress: false, and release.yml must never cancel: aborting mid npm-publish would leave the platform packages published while the meta package's optionalDependencies reference versions that were never pushed, and npm publish is not reversible. Verified with actionlint v1.7.12 (clean across all four workflows) and by exercising both paths live on a fork: a superseded pull_request run cancelled in 38s, and a superseded push-to-main run cancelled while a run from a commit without the block, on the same branch, stayed queued. Closes #422 |
||
|---|---|---|
| .. | ||
| ISSUE_TEMPLATE | ||
| workflows | ||
| dependabot.yml | ||
| pull_request_template.md | ||
| release.yml | ||