From 99e06de4da4210a44361006b15e474e1ad917c53 Mon Sep 17 00:00:00 2001 From: Ariki Date: Thu, 31 Aug 2023 13:07:22 +0300 Subject: [PATCH] build --- dist/cache-save/index.js | 4 ++++ src/cache-save.ts | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dist/cache-save/index.js b/dist/cache-save/index.js index 2287d08a..81a0817a 100644 --- a/dist/cache-save/index.js +++ b/dist/cache-save/index.js @@ -60395,6 +60395,10 @@ const cachePackages = (packageManager) => __awaiter(void 0, void 0, void 0, func core.debug(`Caching for '${packageManager}' is not supported`); return; } + if (core.getInput('cache-restore-only') == 'true') { + core.info(`Cache was not saved since 'cache-restore-only' was set to true}`); + return; + } if (!cachePaths.length) { // TODO: core.getInput has a bug - it can return undefined despite its definition (tests only?) // export declare function getInput(name: string, options?: InputOptions): string; diff --git a/src/cache-save.ts b/src/cache-save.ts index 09b9ad93..57449913 100644 --- a/src/cache-save.ts +++ b/src/cache-save.ts @@ -33,8 +33,10 @@ const cachePackages = async (packageManager: string) => { core.debug(`Caching for '${packageManager}' is not supported`); return; } - if (core.getInput('cache-restore-only') == true ){ - core.info(`Cache was not saved since 'cache-restore-only' was set }`); + if (core.getInput('cache-restore-only') == 'true') { + core.info( + `Cache was not saved since 'cache-restore-only' was set to true}` + ); return; }