Skip to content

Commit 7ae6bfd

Browse files
authored
Merge pull request #311 from smorimoto/fix-depext-flags-failure
Return an empty array to avoid depext failure when depext flags are not passed
2 parents 1c6b559 + 728ec25 commit 7ae6bfd

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ and this project adheres to
88

99
## [unreleased]
1010

11+
### Fixed
12+
13+
- Return an empty array to avoid depext failure when depext flags are not
14+
passed.
15+
1116
## [2.0.0-beta6]
1217

1318
### Changed

dist/index.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/post/index.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/constants.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ export const OPAM_DEPEXT = core.getBooleanInput("opam-depext");
2626
export const OPAM_DEPEXT_FLAGS = core
2727
.getInput("opam-depext-flags")
2828
.split(",")
29-
.map((f) => f.trim());
29+
.map((f) => f.trim())
30+
.filter((f) => f.length > 0);
3031

3132
export const OPAM_DISABLE_SANDBOXING = core.getBooleanInput(
3233
"opam-disable-sandboxing"

0 commit comments

Comments
 (0)