From 5a9c31a7dbb5a573688e67a1733a0644187ceeb8 Mon Sep 17 00:00:00 2001 From: Ivan Zosimov Date: Thu, 21 Apr 2022 16:20:47 +0200 Subject: [PATCH] Fix message source of the output when cache hit occured --- dist/setup/index.js | 2 +- src/cache-restore.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index c495782..ce9899b 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -37261,7 +37261,7 @@ exports.restoreCache = (packageManager, cacheDependencyPath) => __awaiter(void 0 core.debug(`primary key is ${primaryKey}`); core.saveState(constants_1.State.CachePrimaryKey, primaryKey); const cacheKey = yield cache.restoreCache(cachePaths, primaryKey); - core.setOutput('cache-hit', Boolean(cacheKey)); + core.setOutput(constants_1.Outputs.CacheHit, Boolean(cacheKey)); if (!cacheKey) { core.info(`Cache is not found`); return; diff --git a/src/cache-restore.ts b/src/cache-restore.ts index 1e1f703..75ab37b 100644 --- a/src/cache-restore.ts +++ b/src/cache-restore.ts @@ -35,7 +35,7 @@ export const restoreCache = async ( core.saveState(State.CachePrimaryKey, primaryKey); const cacheKey = await cache.restoreCache(cachePaths, primaryKey); - core.setOutput('cache-hit', Boolean(cacheKey)); + core.setOutput(Outputs.CacheHit, Boolean(cacheKey)); if (!cacheKey) { core.info(`Cache is not found`);