diff --git a/dist/restore-only/index.js b/dist/restore-only/index.js index aa5b90a..1c51037 100644 --- a/dist/restore-only/index.js +++ b/dist/restore-only/index.js @@ -66139,7 +66139,7 @@ function restoreImpl(stateProvider, earlyExit) { } // Store the matched cache key in states stateProvider.setState(constants_1.State.CacheMatchedKey, cacheKey); - const isExactKeyMatch = utils.isExactKeyMatch(core.getInput(constants_1.Inputs.Key, { required: true }), cacheKey); + const isExactKeyMatch = utils.isExactKeyMatch(primaryKey, cacheKey); core.setOutput(constants_1.Outputs.CacheHit, isExactKeyMatch.toString()); if (lookupOnly) { core.info(`Cache found and can be restored from key: ${cacheKey}`); diff --git a/dist/restore/index.js b/dist/restore/index.js index 2003be7..f6bb2af 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -66139,7 +66139,7 @@ function restoreImpl(stateProvider, earlyExit) { } // Store the matched cache key in states stateProvider.setState(constants_1.State.CacheMatchedKey, cacheKey); - const isExactKeyMatch = utils.isExactKeyMatch(core.getInput(constants_1.Inputs.Key, { required: true }), cacheKey); + const isExactKeyMatch = utils.isExactKeyMatch(primaryKey, cacheKey); core.setOutput(constants_1.Outputs.CacheHit, isExactKeyMatch.toString()); if (lookupOnly) { core.info(`Cache found and can be restored from key: ${cacheKey}`); diff --git a/src/restoreImpl.ts b/src/restoreImpl.ts index 54bef49..fa490f4 100644 --- a/src/restoreImpl.ts +++ b/src/restoreImpl.ts @@ -71,11 +71,7 @@ export async function restoreImpl( // Store the matched cache key in states stateProvider.setState(State.CacheMatchedKey, cacheKey); - const isExactKeyMatch = utils.isExactKeyMatch( - core.getInput(Inputs.Key, { required: true }), - cacheKey - ); - + const isExactKeyMatch = utils.isExactKeyMatch(primaryKey, cacheKey); core.setOutput(Outputs.CacheHit, isExactKeyMatch.toString()); if (lookupOnly) { core.info(`Cache found and can be restored from key: ${cacheKey}`);