File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 8989 preview :
9090 runs-on : ubuntu-latest
9191 needs : build
92- if : ${{ needs.build.outputs.any-workspace == 'true' }}
92+ # We don't want to give forks free reign to publish to our GitHub Pages, so run this job only if both:
93+ # - any workspace changed (otherwise there's no work to do)
94+ # - and either
95+ # - this is not a PR (so it's some other event that happened in our fork, like a push or merge group)
96+ # - or it's a PR from our fork (not some other fork)
97+ if : ${{
98+ (needs.build.outputs.any-workspace == 'true') &&
99+ (
100+ (!github.event.pull_request) ||
101+ (github.event.pull_request.head.repo.full_name == github.repository)
102+ )
103+ }}
93104 name : Publish preview playgrounds to GitHub Pages
94105 steps :
95106 - name : Determine GitHub Pages directory name
You can’t perform that action at this time.
0 commit comments