Add another check.

This commit is contained in:
Miles Johnson 2024-05-03 11:56:21 -07:00
parent 1c70765f66
commit 007dfd3ca8

View file

@ -174,6 +174,11 @@ export async function saveCache() {
return true; return true;
}); });
if (cachePaths.length === 0) {
core.info('No paths to cache, skipping save entirely');
return;
}
await cleanCargoRegistry(); await cleanCargoRegistry();
await cleanTargetProfile(); await cleanTargetProfile();