mirror of
https://github.com/actions/cache.git
synced 2026-06-14 17:04:10 +08:00
Merge 5cdbd5c7ec into 9255dc7a25
This commit is contained in:
2
dist/restore-only/index.js
vendored
2
dist/restore-only/index.js
vendored
@@ -44137,7 +44137,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}`);
|
||||
|
||||
Reference in New Issue
Block a user