Skip to content

Commit 797e90c

Browse files
committed
fix: pr from forks deployment issue
Signed-off-by: Aritra Dey <adey01027@gmail.com>
1 parent 332e137 commit 797e90c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ jobs:
3434
npm ci
3535
npm run build
3636
37-
- name: Deploy Preview deploy-preview 🚀
38-
if: github.event_name == 'pull_request'
37+
- name: Deploy Preview
38+
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
3939
uses: rossjrw/pr-preview-action@v1
4040
with:
4141
source-dir: ./build/
4242
preview-branch: gh-pages-pr-previews
4343
umbrella-dir: pr-preview
4444
action: auto
4545

46-
- name: Deploy to GitHub Pages 🚀
46+
- name: Deploy to GitHub Pages
4747
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
4848
uses: JamesIves/github-pages-deploy-action@v4
4949
with:

0 commit comments

Comments
 (0)