Compare commits

..

2 Commits

Author SHA1 Message Date
Sergey Dolin
bcee56e4a1
Merge 28cfea2580 into db8764c1e2 2023-07-26 07:25:17 +00:00
Sergey Dolin
28cfea2580 cache-restore-only 2023-07-26 09:25:11 +02:00
2 changed files with 3 additions and 4 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.cachePackages = exports.run = void 0; 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 exports.cachePackages(); yield cachePackages();
} }
catch (error) { catch (error) {
let message = 'Unknown error!'; let message = 'Unknown error!';
@ -58509,7 +58509,6 @@ 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() {
} }
} }
export const cachePackages = async () => { const cachePackages = async () => {
const cacheInput = core.getBooleanInput('cache'); const cacheInput = core.getBooleanInput('cache');
if (!cacheInput) { if (!cacheInput) {
return; return;