File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,16 @@ 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 and the actor is not dependabot or renovate
26+ if : ${{ github.event.pull_request.head.repo.full_name == github.repository && !(github.actor == 'dependabot[bot]' || github.actor == 'renovate[bot]') }}
26272728 with :
2829 branch : gh-pages
2930 folder : out
3031 target-folder : preview/preview/preview/${{github.event.number}}
3132 - name : Comment about preview
32- if : ${{github.event_name == 'pull_request' && !(github.actor == 'dependabot[bot]' || github.actor == 'renovate[bot]')}}
33+ # Only run this job if the repository is NOT a fork and the actor is not dependabot or renovate
34+ if : ${{ github.event.pull_request.head.repo.full_name == github.repository && !(github.actor == 'dependabot[bot]' || github.actor == 'renovate[bot]') }}
3335 uses : marocchino/sticky-pull-request-comment@v2
3436 with :
3537 message : |
You can’t perform that action at this time.
0 commit comments