diff --git a/src/save.ts b/src/save.ts index 821a18d..a0a21bf 100644 --- a/src/save.ts +++ b/src/save.ts @@ -47,11 +47,10 @@ async function run(): Promise { const cacheId = await cache.saveCache(cachePaths, primaryKey, { uploadChunkSize: utils.getInputAsInt(Inputs.UploadChunkSize) }); - if (cacheId == -1) { - return; - } - core.info(`Cache saved with key: ${primaryKey}`); + if (cacheId != -1) { + core.info(`Cache saved with key: ${primaryKey}`); + } } catch (error: unknown) { utils.logWarning((error as Error).message); }