mirror of
https://github.com/Swatinem/rust-cache.git
synced 2025-08-14 12:45:11 +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
|
// https://github.com/actions/toolkit/pull/1378
|
||||||
// TODO: remove this once the underlying bug is fixed.
|
// TODO: remove this once the underlying bug is fixed.
|
||||||
await cacheProvider.cache.saveCache(config.cachePaths.slice(), config.cacheKey);
|
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) {
|
} catch (e) {
|
||||||
reportError(e);
|
reportError(e);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user