Skip to content

Commit f0603fc

Browse files
Run Deploy to subdirectory if pull request only if from branch
1 parent 6f54f9a commit f0603fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/update.yml

+2-1
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.full_name == 'python-docs-translations/dashboard' }}
3435
uses: JamesIves/github-pages-deploy-action@v4
3536
with:
3637
folder: build

0 commit comments

Comments
 (0)