Skip to content

Commit

Permalink
fix: prevent entire CI run from failing if save cache fails
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag-droid authored Apr 18, 2024
1 parent 92b34a6 commit 94ca2be
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/save.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,6 @@ async function run(earlyExit : boolean | undefined) : Promise<void> {
// A failure to save cache shouldn't prevent the entire CI run from
// failing, so do not call setFailed() here.
core.warning(`Saving cache failed: ${error}`);

// Early exit process so node doesn't wait for hanging promises
if (earlyExit) {
process.exit(-1);
}
}

// Since we are not using http requests after this
Expand Down

0 comments on commit 94ca2be

Please sign in to comment.