diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 05a68543b..84a0ea46a 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -30,7 +30,8 @@ jobs: git-config-name: github-actions[bot] git-config-email: 41898282+github-actions[bot]@users.noreply.github.com - name: Deploy to subdirectory if pull request 🚀 - if: github.event_name == 'pull_request' + # This does not work for PRs from forks + if: github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork uses: JamesIves/github-pages-deploy-action@v4 with: folder: build @@ -39,7 +40,8 @@ jobs: git-config-name: github-actions[bot] git-config-email: 41898282+github-actions[bot]@users.noreply.github.com - name: Update PR description if pull request - if: github.event_name == 'pull_request' + # This does not work for PRs from forks + if: github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork uses: chabroA/action-append-pr-description@v1.2.1 with: auth: ${{ secrets.GITHUB_TOKEN }}