Skip to content

Commit

Permalink
Have PR preview actions run even on branches from forks
Browse files Browse the repository at this point in the history
  • Loading branch information
samsrabin committed Oct 3, 2024
1 parent e95c291 commit c3788bb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ jobs:
make BUILDDIR=${PWD}/_build -C doc/ html
- name: Push PR preview
if: |
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository
github.event_name == 'pull_request'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{secrets.GITHUB_TOKEN}}
Expand All @@ -100,8 +99,7 @@ jobs:
user_email: 'github-actions[bot]@users.noreply.github.com'
- name: Comment about previewing documentation
if: |
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository
github.event_name == 'pull_request'
uses: actions/github-script@v6
with:
script: |
Expand Down

0 comments on commit c3788bb

Please sign in to comment.