Add 'cache-hit' as output

This commit is contained in:
Manuel 2021-09-03 18:34:37 +00:00 committed by GitHub
parent 041bafb672
commit d1178716db
4 changed files with 7 additions and 0 deletions

View file

@ -42,6 +42,7 @@ export const restoreCache = async (
core.saveState(State.CachePrimaryKey, primaryKey);
const cacheKey = await cache.restoreCache([cachePath], primaryKey);
core.setOutput('cache-hit', Boolean(cacheKey));
if (!cacheKey) {
core.info(`${packageManager} cache is not found`);