@@ -4935,8 +4935,6 @@ var Inputs;
4935
4935
var Outputs;
4936
4936
(function (Outputs) {
4937
4937
Outputs["CacheHit"] = "cache-hit";
4938
- Outputs["ExactCacheHit"] = "exact-cache-hit";
4939
- Outputs["FuzzyCacheHit"] = "fuzzy-cache-hit";
4940
4938
})(Outputs = exports.Outputs || (exports.Outputs = {}));
4941
4939
var State;
4942
4940
(function (State) {
@@ -38384,7 +38382,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
38384
38382
return result;
38385
38383
};
38386
38384
Object.defineProperty(exports, "__esModule", { value: true });
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;
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;
38388
38386
const cache = __importStar(__webpack_require__(692));
38389
38387
const core = __importStar(__webpack_require__(470));
38390
38388
const constants_1 = __webpack_require__(196);
@@ -38408,14 +38406,6 @@ function setCacheHitOutput(isCacheHit) {
38408
38406
core.setOutput(constants_1.Outputs.CacheHit, isCacheHit.toString());
38409
38407
}
38410
38408
exports.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;
38419
38409
function setOutputAndState(key, cacheKey) {
38420
38410
setCacheHitOutput(isExactKeyMatch(key, cacheKey));
38421
38411
// Store the matched cache key if it exists
@@ -48966,8 +48956,6 @@ function run() {
48966
48956
try {
48967
48957
if (!utils.isCacheFeatureAvailable()) {
48968
48958
utils.setCacheHitOutput(false);
48969
- utils.setExactCacheHitOutput(false);
48970
- utils.setFuzzyCacheHitOutput(false);
48971
48959
return;
48972
48960
}
48973
48961
// Validate inputs, this can cause task failure
@@ -48992,9 +48980,7 @@ function run() {
48992
48980
// Store the matched cache key
48993
48981
utils.setCacheState(cacheKey);
48994
48982
const isExactKeyMatch = utils.isExactKeyMatch(primaryKey, cacheKey);
48995
- utils.setCacheHitOutput(true);
48996
- utils.setExactCacheHitOutput(isExactKeyMatch);
48997
- utils.setFuzzyCacheHitOutput(!isExactKeyMatch);
48983
+ utils.setCacheHitOutput(isExactKeyMatch);
48998
48984
core.info(`Cache restored from key: ${cacheKey}`);
48999
48985
}
49000
48986
catch (error) {
0 commit comments