Skip to content

Commit 0903021

Browse files
committed
Skip preview job on forks
1 parent 1b3522c commit 0903021

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222
- run: npm test
2323

2424
- name: Deploy Preview
25-
if: ${{github.event_name == 'pull_request' && !(github.actor == 'dependabot[bot]' || github.actor == 'renovate[bot]')}}
25+
# Only run this job if the repository is NOT a fork
26+
if: ${{ github.event.pull_request.head.repo.full_name == github.repository && !(github.actor == 'dependabot[bot]' || github.actor == 'renovate[bot]') }}
2627
uses: JamesIves/[email protected]
2728
with:
2829
branch: gh-pages

0 commit comments

Comments
 (0)