ci(pr-checks): cancel runs on PR close and add skip_build_test option#1418
Merged
kaizhou-lab merged 1 commit intomainfrom Mar 18, 2026
Merged
ci(pr-checks): cancel runs on PR close and add skip_build_test option#1418kaizhou-lab merged 1 commit intomainfrom
kaizhou-lab merged 1 commit intomainfrom
Conversation
- Add pull_request closed trigger so concurrency cancels in-progress runs when a PR is merged or manually closed - Add cancel-if-closed lightweight job that triggers the cancellation - Add skip_build_test boolean input for workflow_dispatch to allow skipping the ~45 min build test job on manual re-runs - Guard all non-cancel jobs against closed event to prevent false runs
kaizhou-lab
approved these changes
Mar 18, 2026
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
pull_request: [closed]trigger +cancel-if-closedlightweight job so concurrency automatically cancels in-progress runs when a PR is merged or manually closedskip_build_testboolean input toworkflow_dispatchso manual re-runs can skip the ~45 min build test jobgithub.event.action != 'closed'to prevent them from running on the closed eventTest plan
skip_build_test: true— verify the Build Test job shows as skipped