Skip to content

Commit 2befba7

Browse files
committed
Restrict building previews to PRs from same repository
Signed-off-by: Nelo-T. Wallus <[email protected]> Signed-off-by: Nelo-T. Wallus <[email protected]>
1 parent b49b178 commit 2befba7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656

5757
# deploy the PR to a preview URL
5858
- uses: rossjrw/pr-preview-action@9f77b1d057b494e662c50b8ca40ecc63f21e0887 # v1
59-
if: ${{ github.event_name == 'pull_request' }}
59+
if: ${{ github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork }}
6060
with:
6161
source-dir: .vitepress/dist
6262

0 commit comments

Comments
 (0)