Skip to content

Commit

Permalink
process.exit
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
  • Loading branch information
smorimoto committed Nov 21, 2023
1 parent 9c57bd5 commit f8496c1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 6 additions & 3 deletions dist/post/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion packages/setup-ocaml/src/post.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* eslint-disable unicorn/no-process-exit */
import * as process from "node:process";

import * as core from "@actions/core";

import { saveDuneCache, saveOpamDownloadCache } from "./cache";
Expand All @@ -11,12 +14,13 @@ async function run() {
await saveDuneCache();
}
await saveOpamDownloadCache();
process.exit(0);
} catch (error) {
if (error instanceof Error) {
core.error(error.message);
}
process.exit(1);
}
return;
}

void run();

0 comments on commit f8496c1

Please sign in to comment.