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:
22
22
- run : npm test
23
23
24
24
- 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]') }}
26
27
27
28
with :
28
29
branch : gh-pages
29
30
folder : out
30
31
target-folder : preview/preview/preview/${{github.event.number}}
31
32
- 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]') }}
33
35
uses : marocchino/sticky-pull-request-comment@v2
34
36
with :
35
37
message : |
You can’t perform that action at this time.
0 commit comments