Skip to content

Commit c3788bb

Browse files
committed
Have PR preview actions run even on branches from forks
1 parent e95c291 commit c3788bb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ jobs:
8989
make BUILDDIR=${PWD}/_build -C doc/ html
9090
- name: Push PR preview
9191
if: |
92-
github.event_name == 'pull_request' &&
93-
github.event.pull_request.head.repo.full_name == github.repository
92+
github.event_name == 'pull_request'
9493
uses: peaceiris/actions-gh-pages@v3
9594
with:
9695
github_token: ${{secrets.GITHUB_TOKEN}}
@@ -100,8 +99,7 @@ jobs:
10099
user_email: 'github-actions[bot]@users.noreply.github.com'
101100
- name: Comment about previewing documentation
102101
if: |
103-
github.event_name == 'pull_request' &&
104-
github.event.pull_request.head.repo.full_name == github.repository
102+
github.event_name == 'pull_request'
105103
uses: actions/github-script@v6
106104
with:
107105
script: |

0 commit comments

Comments
 (0)