From 184089677819e7bce02066372d76e0449c7a2c8f Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Thu, 9 Mar 2023 11:46:09 +0100 Subject: [PATCH] Update log statement --- __tests__/restore.test.ts | 2 +- dist/restore-only/index.js | 2 +- dist/restore/index.js | 2 +- src/restoreImpl.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/__tests__/restore.test.ts b/__tests__/restore.test.ts index faab1cd..c8c4029 100644 --- a/__tests__/restore.test.ts +++ b/__tests__/restore.test.ts @@ -397,7 +397,7 @@ test("restore with lookup-only set", async () => { expect(setCacheHitOutputMock).toHaveBeenCalledWith("cache-hit", "true"); expect(infoMock).toHaveBeenCalledWith( - `Cache would have been restored from key: ${key}` + `Cache found and can be restored from key: ${key}` ); expect(failedMock).toHaveBeenCalledTimes(0); }); diff --git a/dist/restore-only/index.js b/dist/restore-only/index.js index c0c0214..883dfbc 100644 --- a/dist/restore-only/index.js +++ b/dist/restore-only/index.js @@ -50521,7 +50521,7 @@ function restoreImpl(stateProvider) { const isExactKeyMatch = utils.isExactKeyMatch(core.getInput(constants_1.Inputs.Key, { required: true }), cacheKey); core.setOutput(constants_1.Outputs.CacheHit, isExactKeyMatch.toString()); if (lookupOnly) { - core.info(`Cache would have been restored from key: ${cacheKey}`); + core.info(`Cache found and can be restored from key: ${cacheKey}`); } else { core.info(`Cache restored from key: ${cacheKey}`); diff --git a/dist/restore/index.js b/dist/restore/index.js index 83fc4f6..2fe23bc 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -50521,7 +50521,7 @@ function restoreImpl(stateProvider) { const isExactKeyMatch = utils.isExactKeyMatch(core.getInput(constants_1.Inputs.Key, { required: true }), cacheKey); core.setOutput(constants_1.Outputs.CacheHit, isExactKeyMatch.toString()); if (lookupOnly) { - core.info(`Cache would have been restored from key: ${cacheKey}`); + core.info(`Cache found and can be restored from key: ${cacheKey}`); } else { core.info(`Cache restored from key: ${cacheKey}`); diff --git a/src/restoreImpl.ts b/src/restoreImpl.ts index 275a971..797bc74 100644 --- a/src/restoreImpl.ts +++ b/src/restoreImpl.ts @@ -71,7 +71,7 @@ async function restoreImpl( core.setOutput(Outputs.CacheHit, isExactKeyMatch.toString()); if (lookupOnly) { - core.info(`Cache would have been restored from key: ${cacheKey}`); + core.info(`Cache found and can be restored from key: ${cacheKey}`); } else { core.info(`Cache restored from key: ${cacheKey}`); }