Skip to content

Commit 02a4ab0

Browse files
committed
ci: skip website report deploy for fork PRs
1 parent 690e0e3 commit 02a4ab0

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/ci-website-e2e.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,15 @@ jobs:
6767

6868
- name: Deploy report to Cloudflare
6969
id: deploy
70-
if: always() && !cancelled()
70+
if: >-
71+
${{
72+
always() &&
73+
!cancelled() &&
74+
(
75+
github.event_name != 'pull_request' ||
76+
github.event.pull_request.head.repo.fork == false
77+
)
78+
}}
7179
env:
7280
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
7381
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

0 commit comments

Comments
 (0)