From 3b4f5079e428efa519253ad5ab91935279fd62b3 Mon Sep 17 00:00:00 2001 From: aiongg Date: Thu, 19 Nov 2026 02:23:06 +0000 Subject: [PATCH] docs workflow: pull requests do not save a dependency cache --- .github/workflows/docs.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a37675342..fc51a0da5 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -29,7 +29,10 @@ jobs: with: toolchain: stable components: clippy + # Pull requests restore the cache but never save one (a 1.1 GB entry per open PR otherwise). - uses: step-security/rust-cache@v2.9.2 + with: + save-if: ${{ github.ref == 'refs/heads/main' }} # A lib build selects no dev-dependency, so craft-ui's `testing` stays off as in an app's # build: warnings that show only without it fail here. - name: Facade as an app builds it