From d597fc61d66ea8ff7e39dead4185c3dbeef3f8da Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 19 Feb 2026 12:59:53 +0000 Subject: [PATCH] Don't cache if not installing deps (#32577) * Force create pnpm cache directory As commented otherwise the job fails if no deps are installed * Don't cache if install isn't set Co-authored-by: Michael Telatynski <7t3chguy@gmail.com> * Remove cache force creation * Revert to original fix * back to simple version, with fixed indent --------- Co-authored-by: Michael Telatynski <7t3chguy@gmail.com> --- .github/workflows/static_analysis.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/static_analysis.yaml b/.github/workflows/static_analysis.yaml index 9f2865219d..dec51c2754 100644 --- a/.github/workflows/static_analysis.yaml +++ b/.github/workflows/static_analysis.yaml @@ -49,6 +49,7 @@ jobs: - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4 - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6 + if: matrix.install != '' with: cache: "pnpm" node-version: "lts/*"