Merge ae8e189c0b3bd0dab5670a41c4ad421cb50e1255 into 9322b3ca74000aeb2c01eb777b646334015ddd72

This commit is contained in:
aparnajyothi-y 2025-08-21 10:59:03 +00:00 committed by GitHub
commit 53eb03d4a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -87883,7 +87883,8 @@ function saveCache(packageManager) {
const cachePaths = JSON.parse(cachePathState);
core.debug(`paths for caching are ${cachePaths.join(', ')}`);
if (!isCacheDirectoryExists(cachePaths)) {
throw new Error(`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.`);
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);

View File

@ -38,11 +38,12 @@ 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.`
);
return;
}
const primaryKey = core.getState(State.STATE_CACHE_PRIMARY_KEY);