3
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2025-04-22 11:25:31 +00:00

Update dependencies with older minimist version

This commit is contained in:
vsvipul 2022-05-04 16:47:33 +05:30
parent c6762fdd6a
commit 887b9060fe
6 changed files with 2783 additions and 972 deletions

View file

@ -52,7 +52,7 @@ async function run(): Promise<void> {
utils.setCacheHitOutput(isExactKeyMatch);
core.info(`Cache restored from key: ${cacheKey}`);
} catch (error) {
} catch (error: any) {
if (error.name === cache.ValidationError.name) {
throw error;
} else {
@ -60,7 +60,7 @@ async function run(): Promise<void> {
utils.setCacheHitOutput(false);
}
}
} catch (error) {
} catch (error: any) {
core.setFailed(error.message);
}
}

View file

@ -49,7 +49,7 @@ async function run(): Promise<void> {
uploadChunkSize: utils.getInputAsInt(Inputs.UploadChunkSize)
});
core.info(`Cache saved with key: ${primaryKey}`);
} catch (error) {
} catch (error: any) {
if (error.name === cache.ValidationError.name) {
throw error;
} else if (error.name === cache.ReserveCacheError.name) {
@ -58,7 +58,7 @@ async function run(): Promise<void> {
utils.logWarning(error.message);
}
}
} catch (error) {
} catch (error: any) {
utils.logWarning(error.message);
}
}