mirror of
https://github.com/Swatinem/rust-cache
synced 2025-06-27 10:38:48 +00:00
save incrementals
This commit is contained in:
parent
af6c167d5d
commit
a0f80e7b74
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue