Skip to content

Commit eb6863e

Browse files
author
Amelia Wattenberger
authored
Merge pull request #32 from benatshippabo/fix/unhandled-promise-rejection
fix(action): fix unhandled promise rejection
2 parents 0cd1a63 + cac7483 commit eb6863e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.jsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ const main = async () => {
8282
console.log("All set!")
8383
}
8484

85-
main()
85+
main().catch((e) => {
86+
core.setFailed(e)
87+
})
8688

8789
function execWithOutput(command, args) {
8890
return new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)