From 93b8a8b7d5eafdf653c064baef99e3e8e8ee0cad Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 13 Sep 2023 16:11:37 -0300 Subject: [PATCH] Avoid reporting errors when making PRs across forks --- .github/workflows/docs-preview.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index 287b60271..ac4123226 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -22,6 +22,10 @@ jobs: - name: Build docs uses: ./.github/actions/build - name: Deploy docs preview + # XXX: Avoid attempting to do preview things across fork boundaries, as it doesn't work. + # See: https://github.com/rossjrw/pr-preview-action/pull/6 + # Adapted from: https://github.com/orgs/community/discussions/26829#discussioncomment-3253575 + if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }} uses: rossjrw/pr-preview-action@v1 with: source-dir: site