diff --git a/CHANGELOG.md b/CHANGELOG.md index 56931796..1ce1abe3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,11 @@ and this project adheres to ## [unreleased] +### Fixed + +- Return an empty array to avoid depext failure when depext flags are not + passed. + ## [2.0.0-beta6] ### Changed diff --git a/dist/index.js b/dist/index.js index 2fc77c46..9ab17bc2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -114988,7 +114988,8 @@ const OCAML_COMPILER = lib_core.getInput("ocaml-compiler"); const OPAM_DEPEXT = lib_core.getBooleanInput("opam-depext"); const OPAM_DEPEXT_FLAGS = lib_core.getInput("opam-depext-flags") .split(",") - .map((f) => f.trim()); + .map((f) => f.trim()) + .filter((f) => f.length > 0); const OPAM_DISABLE_SANDBOXING = lib_core.getBooleanInput("opam-disable-sandboxing"); const OPAM_LOCAL_PACKAGES = lib_core.getInput("opam-local-packages"); const OPAM_PIN = lib_core.getBooleanInput("opam-pin"); diff --git a/dist/post/index.js b/dist/post/index.js index 6d63bfdc..798972b4 100644 --- a/dist/post/index.js +++ b/dist/post/index.js @@ -113801,7 +113801,8 @@ const constants_OCAML_COMPILER = lib_core.getInput("ocaml-compiler"); const OPAM_DEPEXT = lib_core.getBooleanInput("opam-depext"); const OPAM_DEPEXT_FLAGS = lib_core.getInput("opam-depext-flags") .split(",") - .map((f) => f.trim()); + .map((f) => f.trim()) + .filter((f) => f.length > 0); const constants_OPAM_DISABLE_SANDBOXING = lib_core.getBooleanInput("opam-disable-sandboxing"); const OPAM_LOCAL_PACKAGES = lib_core.getInput("opam-local-packages"); const OPAM_PIN = lib_core.getBooleanInput("opam-pin"); diff --git a/src/constants.ts b/src/constants.ts index 2b621dc0..25abb9e4 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -26,7 +26,8 @@ export const OPAM_DEPEXT = core.getBooleanInput("opam-depext"); export const OPAM_DEPEXT_FLAGS = core .getInput("opam-depext-flags") .split(",") - .map((f) => f.trim()); + .map((f) => f.trim()) + .filter((f) => f.length > 0); export const OPAM_DISABLE_SANDBOXING = core.getBooleanInput( "opam-disable-sandboxing"