Skip to content

Commit a69ef06

Browse files
authored
fix(ci): skip docs preview deploy for fork PRs (#679)
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.
1 parent 94fbb64 commit a69ef06

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎.github/workflows/docs-preview-pr.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
find _build -name .buildinfo -exec rm {} \;
5050
5151
- name: Deploy preview
52+
if: github.event.pull_request.head.repo.full_name == github.repository
5253
uses: rossjrw/pr-preview-action@v1
5354
with:
5455
source-dir: ./_build/docs/

0 commit comments

Comments
 (0)