From ae8e189c0b3bd0dab5670a41c4ad421cb50e1255 Mon Sep 17 00:00:00 2001 From: Aparna Jyothi Date: Thu, 21 Aug 2025 16:28:58 +0530 Subject: [PATCH] updated the return --- dist/cache-save/index.js | 1 + src/cache-save.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/cache-save/index.js b/dist/cache-save/index.js index 48cacea3..0506d476 100644 --- a/dist/cache-save/index.js +++ b/dist/cache-save/index.js @@ -87884,6 +87884,7 @@ function saveCache(packageManager) { core.debug(`paths for caching are ${cachePaths.join(', ')}`); if (!isCacheDirectoryExists(cachePaths)) { core.warning(`Cache folder path is retrieved for ${packageManager} but doesn't exist on disk: ${cachePaths.join(', ')}. This likely indicates that there are no dependencies to cache. Consider removing the cache step if it is not needed.`); + return; } const primaryKey = core.getState(cache_distributor_1.State.STATE_CACHE_PRIMARY_KEY); const matchedKey = core.getState(cache_distributor_1.State.CACHE_MATCHED_KEY); diff --git a/src/cache-save.ts b/src/cache-save.ts index d822dee9..abeef2f3 100644 --- a/src/cache-save.ts +++ b/src/cache-save.ts @@ -43,6 +43,7 @@ async function saveCache(packageManager: string) { ', ' )}. This likely indicates that there are no dependencies to cache. Consider removing the cache step if it is not needed.` ); + return; } const primaryKey = core.getState(State.STATE_CACHE_PRIMARY_KEY);