mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-21 05:24:45 +00:00
Merge d23de777e0
into 49933ea528
This commit is contained in:
commit
770a0b01c2
7 changed files with 95 additions and 4 deletions
3
dist/setup/index.js
vendored
3
dist/setup/index.js
vendored
|
@ -96772,6 +96772,7 @@ const restoreCache = (packageManager, cacheDependencyPath) => __awaiter(void 0,
|
|||
const primaryKey = `${keyPrefix}-${fileHash}`;
|
||||
core.debug(`primary key is ${primaryKey}`);
|
||||
core.saveState(constants_1.State.CachePrimaryKey, primaryKey);
|
||||
core.setOutput('cache-key', primaryKey);
|
||||
const isManagedByYarnBerry = yield (0, cache_utils_1.repoHasYarnBerryManagedDependencies)(packageManagerInfo, cacheDependencyPath);
|
||||
let cacheKey;
|
||||
if (isManagedByYarnBerry) {
|
||||
|
@ -96782,6 +96783,8 @@ const restoreCache = (packageManager, cacheDependencyPath) => __awaiter(void 0,
|
|||
cacheKey = yield cache.restoreCache(cachePaths, primaryKey);
|
||||
}
|
||||
core.setOutput('cache-hit', Boolean(cacheKey));
|
||||
core.setOutput('cache-matched-key', cacheKey);
|
||||
core.debug(`cache-matched-key is ${cacheKey}`);
|
||||
if (!cacheKey) {
|
||||
core.info(`${packageManager} cache is not found`);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue