|
|
@ -36328,7 +36328,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.getInputAsInt = exports.getInputAsArray = exports.isValidEvent = exports.logWarning = exports.getCacheState = exports.setOutputAndState = exports.setCacheHitOutput = exports.setCacheState = exports.isExactKeyMatch = exports.isGhes = void 0;
|
|
|
|
exports.getInputAsInt = exports.getInputAsArray = exports.isValidEvent = exports.logWarning = exports.getCacheState = exports.setOutputAndState = exports.setCacheHitOutput = exports.setCacheState = exports.setActionsCacheUrl = exports.isExactKeyMatch = exports.isGhes = void 0;
|
|
|
|
const core = __importStar(__webpack_require__(470));
|
|
|
|
const core = __importStar(__webpack_require__(470));
|
|
|
|
const constants_1 = __webpack_require__(196);
|
|
|
|
const constants_1 = __webpack_require__(196);
|
|
|
|
function isGhes() {
|
|
|
|
function isGhes() {
|
|
|
@ -36343,6 +36343,13 @@ function isExactKeyMatch(key, cacheKey) {
|
|
|
|
}) === 0);
|
|
|
|
}) === 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
exports.isExactKeyMatch = isExactKeyMatch;
|
|
|
|
exports.isExactKeyMatch = isExactKeyMatch;
|
|
|
|
|
|
|
|
function setActionsCacheUrl() {
|
|
|
|
|
|
|
|
const requestedCacheUrl = core.getInput("cache-url");
|
|
|
|
|
|
|
|
if (requestedCacheUrl) {
|
|
|
|
|
|
|
|
process.env.ACTIONS_CACHE_URL = requestedCacheUrl;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
exports.setActionsCacheUrl = setActionsCacheUrl;
|
|
|
|
function setCacheState(state) {
|
|
|
|
function setCacheState(state) {
|
|
|
|
core.saveState(constants_1.State.CacheMatchedKey, state);
|
|
|
|
core.saveState(constants_1.State.CacheMatchedKey, state);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -46719,6 +46726,7 @@ const utils = __importStar(__webpack_require__(443));
|
|
|
|
function run() {
|
|
|
|
function run() {
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
utils.setActionsCacheUrl();
|
|
|
|
if (utils.isGhes()) {
|
|
|
|
if (utils.isGhes()) {
|
|
|
|
utils.logWarning("Cache action is not supported on GHES. See https://github.com/actions/cache/issues/505 for more details");
|
|
|
|
utils.logWarning("Cache action is not supported on GHES. See https://github.com/actions/cache/issues/505 for more details");
|
|
|
|
utils.setCacheHitOutput(false);
|
|
|
|
utils.setCacheHitOutput(false);
|
|
|
|