Skip to content

Commit a7aeb29

Browse files
Merge branch 'python-docs-translations:main' into slimming
2 parents 9dcb1bd + 5a0d06d commit a7aeb29

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/update.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ jobs:
3030
git-config-name: github-actions[bot]
3131
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com
3232
- name: Deploy to subdirectory if pull request 🚀
33-
if: github.event_name == 'pull_request'
33+
# This does not work for PRs from forks
34+
if: github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork
3435
uses: JamesIves/github-pages-deploy-action@v4
3536
with:
3637
folder: build
@@ -39,7 +40,8 @@ jobs:
3940
git-config-name: github-actions[bot]
4041
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com
4142
- name: Update PR description if pull request
42-
if: github.event_name == 'pull_request'
43+
# This does not work for PRs from forks
44+
if: github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork
4345
uses: chabroA/[email protected]
4446
with:
4547
auth: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)