From a0f80e7b74787ce3679013197617c69960c18e1e Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Tue, 28 Jan 2025 21:00:55 -0800 Subject: [PATCH] save incrementals --- src/save.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/save.ts b/src/save.ts index d199328..78532fd 100644 --- a/src/save.ts +++ b/src/save.ts @@ -77,6 +77,11 @@ async function run() { // https://github.com/actions/toolkit/pull/1378 // TODO: remove this once the underlying bug is fixed. await cacheProvider.cache.saveCache(config.cachePaths.slice(), config.cacheKey); + + if (config.incremental) { + core.info(`... Saving incremental cache ...`); + await cacheProvider.cache.saveCache(config.incrementalPaths.slice(), config.incrementalKey); + } } catch (e) { reportError(e); }