Skip to content

Commit cff1d86

Browse files
authored
fix(ci): disable docs-deploy job for fork PRs (#6479)
1 parent 31b5936 commit cff1d86

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/docs-deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
docs-deploy:
2525
name: Deploy to Cloudflare Pages
2626
runs-on: ubuntu-24.04-arm
27+
# Enable workflow for non-PRs but disable workflow for fork PRs as Cloudflare secret does not work for fork PRs
28+
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
2729
defaults:
2830
run:
2931
working-directory: ./docs

0 commit comments

Comments
 (0)