Skip to content

ci: build main and pull requests, not every branch - #3008

Merged
nesbox merged 1 commit into
mainfrom
ci-build-main-only
Sep 18, 2026
Merged

nesbox merged 1 commit into
mainfrom
ci-build-main-only

Conversation

@nesbox

@nesbox nesbox commented Sep 18, 2026

Copy link
Copy Markdown
Owner

build.yml starts 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): one push run and one pull_request run 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 through workflow_dispatch, which was already there, and the release path is untouched: release.yml reaches this workflow through workflow_call, and tag pushes never matched the branch filter.

🤖 Generated with Claude Code

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>
@nesbox
nesbox merged commit 6345925 into main Sep 18, 2026
0 of 9 checks passed
@nesbox
nesbox deleted the ci-build-main-only branch September 18, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant