Skip to content

Commit

Permalink
try: exit early
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Mar 24, 2024
1 parent 9b03647 commit cdcf82a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,11 @@ async function run() {
}
}

run();
async function runEarlyExit() {
await run();

// https://github.com/actions/cache/blob/0c45773b623bea8c8e75f6c82b208c3cf94ea4f9/src/restoreImpl.ts#L99-L106
process.exit(0)
}

runEarlyExit()

0 comments on commit cdcf82a

Please sign in to comment.