From c3788bb5b50c2b84116d93465c7d9c2144df4d6c Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Thu, 3 Oct 2024 13:34:00 -0600 Subject: [PATCH] Have PR preview actions run even on branches from forks --- .github/workflows/docs.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d35cbe1c58..8da5524ae7 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -89,8 +89,7 @@ jobs: make BUILDDIR=${PWD}/_build -C doc/ html - name: Push PR preview if: | - github.event_name == 'pull_request' && - github.event.pull_request.head.repo.full_name == github.repository + github.event_name == 'pull_request' uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{secrets.GITHUB_TOKEN}} @@ -100,8 +99,7 @@ jobs: user_email: 'github-actions[bot]@users.noreply.github.com' - name: Comment about previewing documentation if: | - github.event_name == 'pull_request' && - github.event.pull_request.head.repo.full_name == github.repository + github.event_name == 'pull_request' uses: actions/github-script@v6 with: script: |