Skip to content

Commit 2a5917e

Browse files
committed
ci: skip website report deploy for fork PRs
Guard the website e2e report/deploy step so it only runs for non-fork PRs, avoiding failures when fork PRs lack deploy secrets.
1 parent 25e73f3 commit 2a5917e

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)