Add 'cache-hit' as output
This commit is contained in:
1 parent
041bafb672
commit
d1178716db
4 files changed
+7
No files matched your search
@@ -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`);
|
||||
|
||||
Reference in new issue
Block a user