1
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2024-12-23 04:06:00 +01:00

new build

This commit is contained in:
Deepak Dahiya 2022-05-04 13:43:52 +00:00 committed by GitHub
parent 626c44ce85
commit 12086c7bbf
2 changed files with 8 additions and 6 deletions

View file

@ -48245,11 +48245,12 @@ function run() {
core.info(`Cache restored from key: ${cacheKey}`);
}
catch (error) {
if (error.name === cache.ValidationError.name) {
const typedError = error;
if (typedError.name === cache.ValidationError.name) {
throw error;
}
else {
utils.logWarning(error.message);
utils.logWarning(typedError.message);
utils.setCacheHitOutput(false);
}
}

9
dist/save/index.js vendored
View file

@ -46645,14 +46645,15 @@ function run() {
core.info(`Cache saved with key: ${primaryKey}`);
}
catch (error) {
if (error.name === cache.ValidationError.name) {
const typedError = error;
if (typedError.name === cache.ValidationError.name) {
throw error;
}
else if (error.name === cache.ReserveCacheError.name) {
core.info(error.message);
else if (typedError.name === cache.ReserveCacheError.name) {
core.info(typedError.message);
}
else {
utils.logWarning(error.message);
utils.logWarning(typedError.message);
}
}
}