mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-19 21:04:45 +00:00
Add 'cache-hit' as output
This commit is contained in:
parent
041bafb672
commit
d1178716db
4 changed files with 7 additions and 0 deletions
|
@ -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`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue