|
|
@ -10045,7 +10045,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
exports.isCacheFeatureAvailable = exports.getInputAsInt = exports.getInputAsArray = exports.isValidEvent = exports.logWarning = exports.setCacheHitOutput = exports.isExactKeyMatch = exports.isGhes = void 0;
|
|
|
|
exports.isCacheFeatureAvailable = exports.getInputAsInt = exports.getInputAsArray = exports.isValidEvent = exports.logWarning = exports.isExactKeyMatch = exports.isGhes = void 0;
|
|
|
|
const cache = __importStar(__webpack_require__(692));
|
|
|
|
const cache = __importStar(__webpack_require__(692));
|
|
|
|
const core = __importStar(__webpack_require__(470));
|
|
|
|
const core = __importStar(__webpack_require__(470));
|
|
|
|
const constants_1 = __webpack_require__(196);
|
|
|
|
const constants_1 = __webpack_require__(196);
|
|
|
@ -10061,10 +10061,6 @@ function isExactKeyMatch(key, cacheKey) {
|
|
|
|
}) === 0);
|
|
|
|
}) === 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
exports.isExactKeyMatch = isExactKeyMatch;
|
|
|
|
exports.isExactKeyMatch = isExactKeyMatch;
|
|
|
|
function setCacheHitOutput(isCacheHit) {
|
|
|
|
|
|
|
|
core.setOutput(constants_1.Outputs.CacheHit, isCacheHit.toString());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
exports.setCacheHitOutput = setCacheHitOutput;
|
|
|
|
|
|
|
|
function logWarning(message) {
|
|
|
|
function logWarning(message) {
|
|
|
|
const warningPrefix = "[warning]";
|
|
|
|
const warningPrefix = "[warning]";
|
|
|
|
core.info(`${warningPrefix}${message}`);
|
|
|
|
core.info(`${warningPrefix}${message}`);
|
|
|
@ -50459,7 +50455,7 @@ function restoreImpl(stateProvider) {
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
if (!utils.isCacheFeatureAvailable()) {
|
|
|
|
if (!utils.isCacheFeatureAvailable()) {
|
|
|
|
utils.setCacheHitOutput(false);
|
|
|
|
core.setOutput(constants_1.Outputs.CacheHit, "false");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Validate inputs, this can cause task failure
|
|
|
|
// Validate inputs, this can cause task failure
|
|
|
|