Repository navigation
ci: build main and pull requests, not every branch - #3008
Merged
Merged
Conversation
A branch push and the pull request for it build the same commit twice: the push and pull_request refs are different, so the per-ref concurrency group cancels nothing, and both matrix runs finish. The probe that found it is the last release branch: one commit, two runs, 18 checks for nine jobs. main still builds on every push, a branch without a pull request builds through workflow_dispatch, and the release path is unaffected — release.yml reaches this workflow through workflow_call. Co-Authored-By: Claude Code <noreply@anthropic.com>
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.
build.ymlstarts a full matrix run on a push to any branch, and GitHub starts a second one when the pull request for that branch opens. The two runs share no concurrency group, because a push ref and a pull request ref are different, so neither cancels the other and both finish.Seen on the last branch (
web-player-stack-size,bc110d8c): onepushrun and onepull_requestrun of the same commit, 18 checks for nine jobs, the whole matrix paid twice.This narrows the push trigger to
main. A branch with no pull request still builds throughworkflow_dispatch, which was already there, and the release path is untouched:release.ymlreaches this workflow throughworkflow_call, and tag pushes never matched the branch filter.🤖 Generated with Claude Code