mirror of https://github.com/actions/cache.git
Merge 5cdbd5c7ec
into 8469c94c6a
This commit is contained in:
commit
1f14885662
|
@ -59428,7 +59428,7 @@ function restoreImpl(stateProvider, earlyExit) {
|
||||||
}
|
}
|
||||||
// Store the matched cache key in states
|
// Store the matched cache key in states
|
||||||
stateProvider.setState(constants_1.State.CacheMatchedKey, cacheKey);
|
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());
|
core.setOutput(constants_1.Outputs.CacheHit, isExactKeyMatch.toString());
|
||||||
if (lookupOnly) {
|
if (lookupOnly) {
|
||||||
core.info(`Cache found and can be restored from key: ${cacheKey}`);
|
core.info(`Cache found and can be restored from key: ${cacheKey}`);
|
||||||
|
|
|
@ -59428,7 +59428,7 @@ function restoreImpl(stateProvider, earlyExit) {
|
||||||
}
|
}
|
||||||
// Store the matched cache key in states
|
// Store the matched cache key in states
|
||||||
stateProvider.setState(constants_1.State.CacheMatchedKey, cacheKey);
|
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());
|
core.setOutput(constants_1.Outputs.CacheHit, isExactKeyMatch.toString());
|
||||||
if (lookupOnly) {
|
if (lookupOnly) {
|
||||||
core.info(`Cache found and can be restored from key: ${cacheKey}`);
|
core.info(`Cache found and can be restored from key: ${cacheKey}`);
|
||||||
|
|
|
@ -71,11 +71,7 @@ export async function restoreImpl(
|
||||||
// Store the matched cache key in states
|
// Store the matched cache key in states
|
||||||
stateProvider.setState(State.CacheMatchedKey, cacheKey);
|
stateProvider.setState(State.CacheMatchedKey, cacheKey);
|
||||||
|
|
||||||
const isExactKeyMatch = utils.isExactKeyMatch(
|
const isExactKeyMatch = utils.isExactKeyMatch(primaryKey, cacheKey);
|
||||||
core.getInput(Inputs.Key, { required: true }),
|
|
||||||
cacheKey
|
|
||||||
);
|
|
||||||
|
|
||||||
core.setOutput(Outputs.CacheHit, isExactKeyMatch.toString());
|
core.setOutput(Outputs.CacheHit, isExactKeyMatch.toString());
|
||||||
if (lookupOnly) {
|
if (lookupOnly) {
|
||||||
core.info(`Cache found and can be restored from key: ${cacheKey}`);
|
core.info(`Cache found and can be restored from key: ${cacheKey}`);
|
||||||
|
|
Loading…
Reference in New Issue