diff --git a/dist/index.js b/dist/index.js index ec84d537..bf3382da 100644 --- a/dist/index.js +++ b/dist/index.js @@ -126828,14 +126828,14 @@ __nccwpck_require__.d(forms_namespaceObject, { "serializeArray": () => (serializeArray) }); +;// CONCATENATED MODULE: external "node:process" +const external_node_process_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:process"); // EXTERNAL MODULE: ../../node_modules/@actions/core/lib/core.js var lib_core = __nccwpck_require__(37117); ;// CONCATENATED MODULE: external "node:os" const external_node_os_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:os"); ;// CONCATENATED MODULE: external "node:path" const external_node_path_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:path"); -;// CONCATENATED MODULE: external "node:process" -const external_node_process_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:process"); // EXTERNAL MODULE: ../../node_modules/@actions/exec/lib/exec.js var lib_exec = __nccwpck_require__(66473); // EXTERNAL MODULE: ../../node_modules/@actions/cache/lib/cache.js @@ -145122,16 +145122,20 @@ async function installer() { } ;// CONCATENATED MODULE: ./src/index.ts +/* eslint-disable unicorn/no-process-exit */ + async function run() { try { await installer(); + external_node_process_namespaceObject.exit(0); } catch (error) { if (error instanceof Error) { lib_core.setFailed(error.message); } + external_node_process_namespaceObject.exit(1); } } void run(); diff --git a/lint-doc/dist/index.js b/lint-doc/dist/index.js index 12ef6978..b69d1f2d 100644 --- a/lint-doc/dist/index.js +++ b/lint-doc/dist/index.js @@ -27691,6 +27691,8 @@ var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. (() => { +;// CONCATENATED MODULE: external "node:process" +const external_node_process_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:process"); // EXTERNAL MODULE: ../../node_modules/@actions/core/lib/core.js var core = __nccwpck_require__(7117); // EXTERNAL MODULE: ../../node_modules/@actions/exec/lib/exec.js @@ -27732,6 +27734,8 @@ async function installOdoc() { } ;// CONCATENATED MODULE: ./src/index.ts +/* eslint-disable unicorn/no-process-exit */ + @@ -27740,11 +27744,13 @@ async function run() { await installOpamPackages(); await installOdoc(); await lintOdoc(); + external_node_process_namespaceObject.exit(0); } catch (error) { if (error instanceof Error) { core.setFailed(error.message); } + external_node_process_namespaceObject.exit(1); } } void run(); diff --git a/lint-fmt/dist/index.js b/lint-fmt/dist/index.js index 2e921afa..bbbfe573 100644 --- a/lint-fmt/dist/index.js +++ b/lint-fmt/dist/index.js @@ -27691,6 +27691,8 @@ var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. (() => { +;// CONCATENATED MODULE: external "node:process" +const external_node_process_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:process"); // EXTERNAL MODULE: ../../node_modules/@actions/core/lib/core.js var core = __nccwpck_require__(7117); // EXTERNAL MODULE: ../../node_modules/@actions/exec/lib/exec.js @@ -27751,6 +27753,8 @@ async function installOcamlformat(version) { } ;// CONCATENATED MODULE: ./src/index.ts +/* eslint-disable unicorn/no-process-exit */ + @@ -27760,11 +27764,13 @@ async function run() { const version = await getOcamlformatVersion(); await installOcamlformat(version); await checkFmt(); + external_node_process_namespaceObject.exit(0); } catch (error) { if (error instanceof Error) { core.setFailed(error.message); } + external_node_process_namespaceObject.exit(1); } } void run(); diff --git a/lint-opam/dist/index.js b/lint-opam/dist/index.js index bb2d7868..057d35f4 100644 --- a/lint-opam/dist/index.js +++ b/lint-opam/dist/index.js @@ -27691,6 +27691,8 @@ var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. (() => { +;// CONCATENATED MODULE: external "node:process" +const external_node_process_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:process"); // EXTERNAL MODULE: ../../node_modules/@actions/core/lib/core.js var core = __nccwpck_require__(7117); // EXTERNAL MODULE: ../../node_modules/@actions/exec/lib/exec.js @@ -27725,6 +27727,8 @@ async function installOpamDuneLint() { } ;// CONCATENATED MODULE: ./src/index.ts +/* eslint-disable unicorn/no-process-exit */ + @@ -27734,11 +27738,13 @@ async function run() { await installOpamDuneLint(); await opamLint(); await opamDuneLint(); + external_node_process_namespaceObject.exit(0); } catch (error) { if (error instanceof Error) { core.setFailed(error.message); } + external_node_process_namespaceObject.exit(1); } } void run(); diff --git a/packages/lint-doc/src/index.ts b/packages/lint-doc/src/index.ts index 78303137..b56ecb4e 100644 --- a/packages/lint-doc/src/index.ts +++ b/packages/lint-doc/src/index.ts @@ -1,3 +1,6 @@ +/* eslint-disable unicorn/no-process-exit */ +import * as process from "node:process"; + import * as core from "@actions/core"; import { lintOdoc } from "./odoc.js"; @@ -8,10 +11,12 @@ async function run() { await installOpamPackages(); await installOdoc(); await lintOdoc(); + process.exit(0); } catch (error) { if (error instanceof Error) { core.setFailed(error.message); } + process.exit(1); } } diff --git a/packages/lint-fmt/src/index.ts b/packages/lint-fmt/src/index.ts index 6a59846b..7a8e683b 100644 --- a/packages/lint-fmt/src/index.ts +++ b/packages/lint-fmt/src/index.ts @@ -1,3 +1,6 @@ +/* eslint-disable unicorn/no-process-exit */ +import * as process from "node:process"; + import * as core from "@actions/core"; import { checkFmt } from "./lint.js"; @@ -9,10 +12,12 @@ async function run() { const version = await getOcamlformatVersion(); await installOcamlformat(version); await checkFmt(); + process.exit(0); } catch (error) { if (error instanceof Error) { core.setFailed(error.message); } + process.exit(1); } } diff --git a/packages/lint-opam/src/index.ts b/packages/lint-opam/src/index.ts index 79d08f4e..03d9290e 100644 --- a/packages/lint-opam/src/index.ts +++ b/packages/lint-opam/src/index.ts @@ -1,3 +1,6 @@ +/* eslint-disable unicorn/no-process-exit */ +import * as process from "node:process"; + import * as core from "@actions/core"; import { opamDuneLint, opamLint } from "./lint.js"; @@ -9,10 +12,12 @@ async function run() { await installOpamDuneLint(); await opamLint(); await opamDuneLint(); + process.exit(0); } catch (error) { if (error instanceof Error) { core.setFailed(error.message); } + process.exit(1); } } diff --git a/packages/setup-ocaml/src/index.ts b/packages/setup-ocaml/src/index.ts index bf609e1e..1a01fb28 100644 --- a/packages/setup-ocaml/src/index.ts +++ b/packages/setup-ocaml/src/index.ts @@ -1,3 +1,6 @@ +/* eslint-disable unicorn/no-process-exit */ +import * as process from "node:process"; + import * as core from "@actions/core"; import { installer } from "./installer.js"; @@ -5,10 +8,12 @@ import { installer } from "./installer.js"; async function run() { try { await installer(); + process.exit(0); } catch (error) { if (error instanceof Error) { core.setFailed(error.message); } + process.exit(1); } }