@@ -4935,6 +4935,8 @@ var Inputs;
49354935var Outputs;
49364936(function (Outputs) {
49374937 Outputs["CacheHit"] = "cache-hit";
4938+ Outputs["ExactCacheHit"] = "exact-cache-hit";
4939+ Outputs["FuzzyCacheHit"] = "fuzzy-cache-hit";
49384940})(Outputs = exports.Outputs || (exports.Outputs = {}));
49394941var State;
49404942(function (State) {
@@ -38382,7 +38384,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
3838238384 return result;
3838338385};
3838438386Object.defineProperty(exports, "__esModule", { value: true });
38385- exports.isCacheFeatureAvailable = exports.getInputAsInt = exports.getInputAsArray = exports.isValidEvent = exports.logWarning = exports.getCacheState = exports.setOutputAndState = exports.setCacheHitOutput = exports.setCacheState = exports.isExactKeyMatch = exports.isGhes = void 0;
38387+ exports.isCacheFeatureAvailable = exports.getInputAsInt = exports.getInputAsArray = exports.isValidEvent = exports.logWarning = exports.getCacheState = exports.setOutputAndState = exports.setFuzzyCacheHitOutput = exports.setExactCacheHitOutput = exports. setCacheHitOutput = exports.setCacheState = exports.isExactKeyMatch = exports.isGhes = void 0;
3838638388const cache = __importStar(__webpack_require__(692));
3838738389const core = __importStar(__webpack_require__(470));
3838838390const constants_1 = __webpack_require__(196);
@@ -38406,6 +38408,14 @@ function setCacheHitOutput(isCacheHit) {
3840638408 core.setOutput(constants_1.Outputs.CacheHit, isCacheHit.toString());
3840738409}
3840838410exports.setCacheHitOutput = setCacheHitOutput;
38411+ function setExactCacheHitOutput(isCacheHit) {
38412+ core.setOutput(constants_1.Outputs.ExactCacheHit, isCacheHit.toString());
38413+ }
38414+ exports.setExactCacheHitOutput = setExactCacheHitOutput;
38415+ function setFuzzyCacheHitOutput(isCacheHit) {
38416+ core.setOutput(constants_1.Outputs.FuzzyCacheHit, isCacheHit.toString());
38417+ }
38418+ exports.setFuzzyCacheHitOutput = setFuzzyCacheHitOutput;
3840938419function setOutputAndState(key, cacheKey) {
3841038420 setCacheHitOutput(isExactKeyMatch(key, cacheKey));
3841138421 // Store the matched cache key if it exists
@@ -48956,6 +48966,8 @@ function run() {
4895648966 try {
4895748967 if (!utils.isCacheFeatureAvailable()) {
4895848968 utils.setCacheHitOutput(false);
48969+ utils.setExactCacheHitOutput(false);
48970+ utils.setFuzzyCacheHitOutput(false);
4895948971 return;
4896048972 }
4896148973 // Validate inputs, this can cause task failure
@@ -48980,7 +48992,9 @@ function run() {
4898048992 // Store the matched cache key
4898148993 utils.setCacheState(cacheKey);
4898248994 const isExactKeyMatch = utils.isExactKeyMatch(primaryKey, cacheKey);
48983- utils.setCacheHitOutput(isExactKeyMatch);
48995+ utils.setCacheHitOutput(true);
48996+ utils.setExactCacheHitOutput(isExactKeyMatch);
48997+ utils.setFuzzyCacheHitOutput(!isExactKeyMatch);
4898448998 core.info(`Cache restored from key: ${cacheKey}`);
4898548999 }
4898649000 catch (error) {
0 commit comments