From 29a86d05b8e9b4ba49b2642441c04695fd923e50 Mon Sep 17 00:00:00 2001 From: ilhan007 Date: Tue, 26 May 2026 12:40:47 +0300 Subject: [PATCH] ci: skip deploy-preview job for fork PRs Fork PRs don't have access to the Netlify and bot token secrets, so the deploy step always failed and surfaced as a failing check on the PR. Gate the job on the head repo matching the base repo so it's skipped (not failed) for forks. Skipped checks don't block merge. --- .github/workflows/deploy-preview.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-preview.yaml b/.github/workflows/deploy-preview.yaml index d9729d17d70f..57f8c6ac0474 100644 --- a/.github/workflows/deploy-preview.yaml +++ b/.github/workflows/deploy-preview.yaml @@ -33,8 +33,11 @@ permissions: jobs: deploy-preview: + # Skip for PRs from forks — they don't have access to the Netlify secrets, + # so the deploy step would always fail. A skipped check does not block merge. + if: github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest - + steps: - name: Checkout uses: actions/checkout@v4