File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55jobs :
66 cleanup :
77 runs-on : ubuntu-latest
8+ # PRs from forks don't create previews
9+ if : github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork
810 permissions :
911 contents : write
1012 steps :
Original file line number Diff line number Diff line change 6666 git-config-name : github-actions[bot]
6767 git-config-email : 41898282+github-actions[bot]@users.noreply.github.com
6868 - name : Deploy metadata view to subdirectory if pull request 🚀
69- if : github.event_name == 'pull_request'
69+ # This does not work for PRs from forks
70+ if : github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork
7071 uses : JamesIves/github-pages-deploy-action@v4
7172 with :
7273 folder : build
7576 git-config-name : github-actions[bot]
7677 git-config-email : 41898282+github-actions[bot]@users.noreply.github.com
7778 - uses : actions/upload-artifact@v5
79+ if : always()
7880 with :
7981 name : build
8082 path : build
You can’t perform that action at this time.
0 commit comments