Add output cache-matched-key

This commit is contained in:
Alex Dunae 2025-01-15 12:03:24 -08:00
parent 82af78e9c4
commit d23de777e0
4 changed files with 47 additions and 1 deletions

2
dist/setup/index.js vendored
View file

@ -93337,6 +93337,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;