mirror of
https://github.com/Swatinem/rust-cache
synced 2025-04-10 22:57:07 +00:00
save incrementals
This commit is contained in:
parent
af6c167d5d
commit
a0f80e7b74
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue