Skip to content

Commit

Permalink
Add another check.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed May 3, 2024
1 parent 1c70765 commit 007dfd3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cargo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 007dfd3

Please sign in to comment.