Compare commits

..

2 Commits

Author SHA1 Message Date
Sergey Dolin
b917fb5fcb
Merge 0f07568d6d into db8764c1e2 2023-07-26 09:18:00 +02:00
Sergey Dolin
0f07568d6d cache-restore-only 2023-07-26 09:17:55 +02:00
2 changed files with 4 additions and 3 deletions

View File

@ -58442,7 +58442,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.run = void 0;
exports.cachePackages = exports.run = void 0;
const core = __importStar(__nccwpck_require__(2186));
const cache = __importStar(__nccwpck_require__(7799));
const fs_1 = __importDefault(__nccwpck_require__(7147));
@ -58462,7 +58462,7 @@ function run() {
return;
}
try {
yield cachePackages();
yield exports.cachePackages();
}
catch (error) {
let message = 'Unknown error!';
@ -58509,6 +58509,7 @@ const cachePackages = () => __awaiter(void 0, void 0, void 0, function* () {
}
core.info(`Cache saved with the key: ${primaryKey}`);
});
exports.cachePackages = cachePackages;
function logWarning(message) {
const warningPrefix = '[warning]';
core.info(`${warningPrefix}${message}`);

View File

@ -31,7 +31,7 @@ export async function run() {
}
}
const cachePackages = async () => {
export const cachePackages = async () => {
const cacheInput = core.getBooleanInput('cache');
if (!cacheInput) {
return;