3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-04-29 14:45:53 +00:00

update dependencies

This commit is contained in:
Arpad Borsos 2021-09-28 17:49:43 +02:00
parent 801365cd81
commit d127014599
No known key found for this signature in database
GPG key ID: FC7BCA77824B3298
6 changed files with 22540 additions and 24584 deletions

View file

@ -4,11 +4,11 @@ import { cleanTarget, getCacheConfig, getCargoBins, getPackages, stateBins, stat
async function run() {
try {
var cacheOnFailure = core.getInput("cache-on-failure").toLowerCase()
var cacheOnFailure = core.getInput("cache-on-failure").toLowerCase();
if (cacheOnFailure !== "true") {
cacheOnFailure = "false"
cacheOnFailure = "false";
}
core.exportVariable("CACHE_ON_FAILURE", cacheOnFailure)
core.exportVariable("CACHE_ON_FAILURE", cacheOnFailure);
core.exportVariable("CARGO_INCREMENTAL", 0);
const { paths, key, restoreKeys } = await getCacheConfig();
@ -40,7 +40,7 @@ async function run() {
} catch (e) {
setCacheHitOutput(false);
core.info(`[warning] ${e.message}`);
core.info(`[warning] ${(e as any).message}`);
}
}

View file

@ -53,7 +53,7 @@ async function run() {
core.info(`Using key:\n ${key}`);
await cache.saveCache(savePaths, key);
} catch (e) {
core.info(`[warning] ${e.message}`);
core.info(`[warning] ${(e as any).message}`);
}
}