Skip to content

Commit

Permalink
fix to prevent GH pages publish step if PR is from a fork
Browse files Browse the repository at this point in the history
  • Loading branch information
rsriniva authored Feb 22, 2024
1 parent 32d7ed9 commit 6fedc4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ concurrency: pr-preview-${{ github.ref }}

jobs:
build:
# Do not run if PR is from fork
if: ${{ ! github.event.pull_request.head.repo.fork }}
permissions:
actions: write
checks: write
Expand Down Expand Up @@ -47,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 6fedc4d

Please sign in to comment.