diff --git a/.github/workflows/pages-preview.yml b/.github/workflows/pages-preview.yml index a5455bef..13ca040c 100644 --- a/.github/workflows/pages-preview.yml +++ b/.github/workflows/pages-preview.yml @@ -13,7 +13,7 @@ jobs: pages: write id-token: write contents: read - pull-requests: write + issues: write environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} @@ -28,7 +28,8 @@ jobs: id: deployment if: github.event_name == 'push' - name: Comment PR with preview artifact link - if: github.event_name == 'pull_request' + if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository + continue-on-error: true uses: actions/github-script@v7 with: script: |