Skip to content

Commit c4e679d

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ permissions:
77
jobs:
88
deploy:
99
runs-on: ubuntu-latest
10+
# Only run this job if the repository is NOT a fork
11+
if: ${{ github.event_name != 'pull_request' || (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]') }}
1012
steps:
1113
- name: Checkout
1214
uses: actions/[email protected]

0 commit comments

Comments
 (0)