mirror of
https://gitea.com/actions/setup-node.git
synced 2025-07-17 21:20:15 +08:00
Add 'cache-hit' as output
This commit is contained in:
@ -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