diff --git a/src/cargo.ts b/src/cargo.ts index d8f3732..0b8c60c 100644 --- a/src/cargo.ts +++ b/src/cargo.ts @@ -174,6 +174,11 @@ export async function saveCache() { return true; }); + if (cachePaths.length === 0) { + core.info('No paths to cache, skipping save entirely'); + return; + } + await cleanCargoRegistry(); await cleanTargetProfile();