Skip to content

ci: skip redundant build re-runs on same-repo PRs - #22

Merged
BrainInBlack merged 1 commit into
mainfrom
develop
Jul 24, 2026
Merged

ci: skip redundant build re-runs on same-repo PRs#22
BrainInBlack merged 1 commit into
mainfrom
develop

Conversation

@BrainInBlack

Copy link
Copy Markdown
Owner

Bare push + pull_request triggers meant every commit was re-validated as it walked develop -> PR -> main. Guard the build job so same-repo PRs (develop->main releases, Dependabot PRs) rely on their branch's push run, which branch protection already reads per head SHA. Fork PRs still build, since fork branches don't fire push here. ci-success now treats a skipped build as a pass so main's required gate stays green without rebuilding.

Bare push + pull_request triggers meant every commit was re-validated as
it walked develop -> PR -> main. Guard the build job so same-repo PRs
(develop->main releases, Dependabot PRs) rely on their branch's push run,
which branch protection already reads per head SHA. Fork PRs still build,
since fork branches don't fire push here. ci-success now treats a skipped
build as a pass so main's required gate stays green without rebuilding.
@BrainInBlack
BrainInBlack merged commit ebdf921 into main Jul 24, 2026
4 checks passed
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