Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
Do not run PR preview GH actions for PRs from forks
Browse files Browse the repository at this point in the history
  • Loading branch information
rsriniva committed Mar 4, 2024
1 parent f55896a commit b2548ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
run: npm run build

- name: Publish PR preview to GitHub Pages
# Do not run if PR is from fork
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./build/site

0 comments on commit b2548ef

Please sign in to comment.