From 0b68f6894609132212252f0e03babceaa12023eb Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Mon, 26 Jan 2026 19:21:08 +0800 Subject: [PATCH 1/3] fix(ci): disable docs-deploy job for fork PRs --- .github/workflows/docs-deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index dcb818c9374e..d931ca9f8c8f 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -24,6 +24,8 @@ jobs: docs-deploy: name: Deploy to Cloudflare Pages runs-on: ubuntu-24.04-arm + # Cloudflare secrect does not work for fork PRs + if: github.event.pull_request.head.repo.full_name == github.repository defaults: run: working-directory: ./docs From d8eaae363b2cf8741ccd517726f720b5c48ab45f Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Mon, 26 Jan 2026 19:28:26 +0800 Subject: [PATCH 2/3] typo --- .github/workflows/docs-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index d931ca9f8c8f..ba189dfeee8b 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -24,7 +24,7 @@ jobs: docs-deploy: name: Deploy to Cloudflare Pages runs-on: ubuntu-24.04-arm - # Cloudflare secrect does not work for fork PRs + # Cloudflare secret does not work for fork PRs if: github.event.pull_request.head.repo.full_name == github.repository defaults: run: From 8fa09b2d7f44eef4b016a65727d8950b08cb9074 Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Mon, 26 Jan 2026 19:43:27 +0800 Subject: [PATCH 3/3] enable for non-PRs --- .github/workflows/docs-deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index ba189dfeee8b..41b14aba0fde 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -24,8 +24,8 @@ jobs: docs-deploy: name: Deploy to Cloudflare Pages runs-on: ubuntu-24.04-arm - # Cloudflare secret does not work for fork PRs - if: github.event.pull_request.head.repo.full_name == github.repository + # Enable workflow for non-PRs but disable workflow for fork PRs as Cloudflare secret does not work for fork PRs + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} defaults: run: working-directory: ./docs