mirror of
https://github.com/actions/setup-python.git
synced 2025-08-26 18:54:19 +00:00
updated the return
This commit is contained in:
parent
ffb09d6b33
commit
ae8e189c0b
1
dist/cache-save/index.js
vendored
1
dist/cache-save/index.js
vendored
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user