From 3bf4137751b40ac15f3881d29b01922f170c46a2 Mon Sep 17 00:00:00 2001 From: arnavchachra Date: Mon, 25 May 2026 20:42:30 +0530 Subject: [PATCH 1/2] fix: preserve workspace cache across build checkout actions/checkout defaults to clean: true which runs git clean -ffdx, wiping any caller-restored build caches (e.g. .next/cache) before the build command runs. Setting clean: false lets callers restore a cache before invoking this action and have it survive to the build. --- actions/build/action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/actions/build/action.yml b/actions/build/action.yml index 75e5fce..76a56d9 100644 --- a/actions/build/action.yml +++ b/actions/build/action.yml @@ -71,6 +71,8 @@ runs: using: composite steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + clean: false - name: Setup toolchain if: inputs.node-version != '' From 5efcae33eb70722ca0e75921f2701802a5a90c58 Mon Sep 17 00:00:00 2001 From: arnavchachra Date: Mon, 25 May 2026 20:55:18 +0530 Subject: [PATCH 2/2] docs: add comment explaining clean: false on build checkout --- actions/build/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/actions/build/action.yml b/actions/build/action.yml index 76a56d9..ef035e9 100644 --- a/actions/build/action.yml +++ b/actions/build/action.yml @@ -72,6 +72,7 @@ runs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + # Preserve caller-restored build caches (e.g. .next/cache) — git clean -ffdx would wipe them before the build runs. clean: false - name: Setup toolchain