Skip to content

ci(pkg-pr-new): skip preview binary build for fork PRs#292

Merged
RhysSullivan merged 1 commit intoRhysSullivan:mainfrom
mrzmyr:fix/pkg-pr-new-skip-forks
Apr 18, 2026
Merged

ci(pkg-pr-new): skip preview binary build for fork PRs#292
RhysSullivan merged 1 commit intoRhysSullivan:mainfrom
mrzmyr:fix/pkg-pr-new-skip-forks

Conversation

@mrzmyr
Copy link
Copy Markdown
Contributor

@mrzmyr mrzmyr commented Apr 18, 2026

What this fixes

Fork PRs currently fail the Build preview binary check in the Publish (pkg.pr.new) workflow:

curl: (6) Could not resolve host: .r2.cloudflarestorage.com

GitHub's pull_request trigger does not expose repository secrets to workflows running on PRs from forks. That means secrets.CLOUDFLARE_ACCOUNT_ID (and the R2 access keys) are empty, so the R2_ENDPOINT URL resolves to https://.r2.cloudflarestorage.com and the upload fails.

This PR adds if: github.event.pull_request.head.repo.full_name == github.repository to the build-preview-binary job so it only runs for same-repo PRs. The publish job skips automatically via its needs: dependency.

Blocked PR

#268 is currently red solely because of this CI issue — its actual changes only touch apps/*/src/web/shell.tsx and a screenshot.

Test plan

Fork PRs don't receive repo secrets under the pull_request trigger, so
the R2 upload fails with 'Could not resolve host: .r2.cloudflarestorage.com'
because CLOUDFLARE_ACCOUNT_ID is empty. Skip the job for fork PRs; the
publish job cascades to skipped via its needs: dependency.
@RhysSullivan RhysSullivan merged commit ab2a1a9 into RhysSullivan:main Apr 18, 2026
5 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.

2 participants