From 85af7ba50dd7ad49d96b2fc6965f92f9de0090fc Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Mon, 17 Nov 2025 06:21:35 -0500 Subject: [PATCH] ci: skip clear cache if the PR is a fork (#1880) --- .github/workflows/clear_workflow_cache.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/clear_workflow_cache.yml b/.github/workflows/clear_workflow_cache.yml index c9895961..c83bab41 100644 --- a/.github/workflows/clear_workflow_cache.yml +++ b/.github/workflows/clear_workflow_cache.yml @@ -17,6 +17,7 @@ on: jobs: clear-cache: + if: ${{ github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork }} # If it is a PR, only if not a fork runs-on: ubuntu-latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}