update error to warning when no dependency to cache

This commit is contained in:
Aparna Jyothi 2025-08-21 16:16:20 +05:30
parent 9322b3ca74
commit ffb09d6b33
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,7 @@ async function saveCache(packageManager: string) {
core.debug(`paths for caching are ${cachePaths.join(', ')}`);
if (!isCacheDirectoryExists(cachePaths)) {
throw new Error(
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.`