Skip to content

Commit 5a0d06d

Browse files
Also include Update PR description if pull request
1 parent 8b631ea commit 5a0d06d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/update.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com
3232
- name: Deploy to subdirectory if pull request 🚀
3333
# This does not work for PRs from forks
34-
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'python-docs-translations/dashboard' }}
34+
if: github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork
3535
uses: JamesIves/github-pages-deploy-action@v4
3636
with:
3737
folder: build
@@ -40,7 +40,8 @@ jobs:
4040
git-config-name: github-actions[bot]
4141
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com
4242
- name: Update PR description if pull request
43-
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
4445
uses: chabroA/[email protected]
4546
with:
4647
auth: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)