From 619843722eeb3b43a0b1cc902761eed3902566bb Mon Sep 17 00:00:00 2001 From: John Myers <9696606+johntmyers@users.noreply.github.com> Date: Mon, 30 Mar 2026 09:33:53 -0700 Subject: [PATCH] fix(ci): skip docs preview deploy for fork PRs Fork PRs receive a read-only GITHUB_TOKEN that cannot push to gh-pages, causing the deploy step to fail with a 403. Skip the deploy for fork PRs while still running the docs build to validate changes compile cleanly. --- .github/workflows/docs-preview-pr.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docs-preview-pr.yml b/.github/workflows/docs-preview-pr.yml index ccade741..6c0672ba 100644 --- a/.github/workflows/docs-preview-pr.yml +++ b/.github/workflows/docs-preview-pr.yml @@ -49,6 +49,7 @@ jobs: find _build -name .buildinfo -exec rm {} \; - name: Deploy preview + if: github.event.pull_request.head.repo.full_name == github.repository uses: rossjrw/pr-preview-action@v1 with: source-dir: ./_build/docs/