mirror of
https://github.com/actions/cache.git
synced 2024-11-27 05:49:02 +00:00
dist
This commit is contained in:
parent
d6e98d9302
commit
86712a0733
5
dist/restore/index.js
vendored
5
dist/restore/index.js
vendored
@ -48978,6 +48978,7 @@ function restore() {
|
|||||||
yield (0, restoreImpl_1.default)(new outputSetter_1.StateOutputSetter());
|
yield (0, restoreImpl_1.default)(new outputSetter_1.StateOutputSetter());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
restore();
|
||||||
exports.default = restore;
|
exports.default = restore;
|
||||||
|
|
||||||
|
|
||||||
@ -50654,13 +50655,11 @@ function run(outputter) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Store the matched cache key in states
|
// Store the matched cache key in states
|
||||||
//utils.setCacheState(cacheKey);
|
|
||||||
outputter.setState(constants_1.State.CacheMatchedKey, cacheKey);
|
outputter.setState(constants_1.State.CacheMatchedKey, cacheKey);
|
||||||
const isExactKeyMatch = utils.isExactKeyMatch(core.getInput(constants_1.Inputs.Key, { required: true }), cacheKey);
|
const isExactKeyMatch = utils.isExactKeyMatch(core.getInput(constants_1.Inputs.Key, { required: true }), cacheKey);
|
||||||
//utils.setCacheHitOutput(isExactKeyMatch);
|
|
||||||
outputter.setOutput(constants_1.Outputs.CacheHit, isExactKeyMatch.toString());
|
outputter.setOutput(constants_1.Outputs.CacheHit, isExactKeyMatch.toString());
|
||||||
core.info(`Cache restored from key: ${cacheKey}`);
|
core.info(`Cache restored from key: ${cacheKey}`);
|
||||||
return cacheKey;
|
return;
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
|
Loading…
Reference in New Issue
Block a user