From b2548efcbd76c2dae00dd93ff1660178198a5300 Mon Sep 17 00:00:00 2001 From: Ravi Srinivassan Date: Mon, 4 Mar 2024 08:04:17 +0530 Subject: [PATCH] Do not run PR preview GH actions for PRs from forks --- .github/workflows/pr.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index a70a6ef..ca7c2ac 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -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