Code review

This commit is contained in:
Marc Mueller 2023-03-09 11:00:37 +01:00
parent d57039cf5c
commit 84097c0606
7 changed files with 23 additions and 7 deletions

View file

@ -70,7 +70,11 @@ async function restoreImpl(
);
core.setOutput(Outputs.CacheHit, isExactKeyMatch.toString());
core.info(`Cache restored from key: ${cacheKey}`);
if (lookupOnly) {
core.info(`Cache would have been restored from key: ${cacheKey}`);
} else {
core.info(`Cache restored from key: ${cacheKey}`);
}
return cacheKey;
} catch (error: unknown) {