mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 09:21:00 +00:00
Chore(lint) cache-restore.ts
This commit is contained in:
parent
49141160ec
commit
7edc3bb90a
1 changed files with 5 additions and 1 deletions
|
@ -43,7 +43,11 @@ export const restoreCache = async (
|
||||||
|
|
||||||
core.saveState(State.CachePrimaryKey, primaryKey);
|
core.saveState(State.CachePrimaryKey, primaryKey);
|
||||||
|
|
||||||
const cacheKey = await cache.restoreCache([cachePath], primaryKey, restoreKeys);
|
const cacheKey = await cache.restoreCache(
|
||||||
|
[cachePath],
|
||||||
|
primaryKey,
|
||||||
|
restoreKeys
|
||||||
|
);
|
||||||
core.setOutput('cache-hit', Boolean(cacheKey));
|
core.setOutput('cache-hit', Boolean(cacheKey));
|
||||||
|
|
||||||
if (!cacheKey) {
|
if (!cacheKey) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue