From 644340ecc96694d9af77587ac647346481df1f9c Mon Sep 17 00:00:00 2001 From: mrzmyr Date: Sat, 18 Apr 2026 09:01:12 +0200 Subject: [PATCH] ci(pkg-pr-new): skip preview binary build for fork PRs 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. --- .github/workflows/pkg-pr-new.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pkg-pr-new.yml b/.github/workflows/pkg-pr-new.yml index 65babfe6c..542a84b6d 100644 --- a/.github/workflows/pkg-pr-new.yml +++ b/.github/workflows/pkg-pr-new.yml @@ -9,6 +9,10 @@ jobs: # needs to know which platforms made it this far. build-preview-binary: name: Build preview binary (${{ matrix.target }}) + # Fork PRs don't receive repo secrets, so the R2 upload step can't + # authenticate. Skip the whole preview pipeline (publish `needs:` this + # job and cascades to skipped) rather than failing the check. + if: github.event.pull_request.head.repo.full_name == github.repository strategy: fail-fast: false matrix: