3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-04-10 22:57:07 +00:00

save incrementals

This commit is contained in:
Jonathan Kelley 2025-01-28 21:00:55 -08:00
parent af6c167d5d
commit a0f80e7b74
No known key found for this signature in database
GPG key ID: 1FBB50F7EB0A08BE

View file

@ -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);
}