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