Skip to content

Commit cb801da

Browse files
authored
Post a comments with link to built docs for PR from forked repo (#2146)
1 parent 5a39d91 commit cb801da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-sphinx.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212
GH_BOT_NAME: 'github-actions[bot]'
1313
GH_BOT_EMAIL: 'github-actions[bot]@users.noreply.github.com'
1414
GH_EVENT_OPEN_PR_UPSTREAM: ${{ github.event_name == 'pull_request' && github.event.action != 'closed' &&
15-
github.event.pull_request && !github.event.pull_request.head.repo.fork }}
15+
github.event.pull_request && !github.event.pull_request.base.repo.fork }}
1616
GH_EVENT_PUSH_UPSTREAM: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' &&
1717
github.event.ref == 'refs/heads/master' && github.event.repository && !github.event.repository.fork }}
1818
PUBLISH_DIR: doc/_build/html/
@@ -224,7 +224,7 @@ jobs:
224224
clean:
225225
if: |
226226
github.event_name == 'pull_request' && github.event.action == 'closed' &&
227-
github.event.pull_request && !github.event.pull_request.head.repo.fork
227+
github.event.pull_request && !github.event.pull_request.base.repo.fork
228228
229229
needs: build-and-deploy
230230

0 commit comments

Comments
 (0)