Skip to content

Commit

Permalink
Merge pull request #32 from benatshippabo/fix/unhandled-promise-rejec…
Browse files Browse the repository at this point in the history
…tion

fix(action): fix unhandled promise rejection
  • Loading branch information
Wattenberger authored Aug 18, 2021
2 parents 0cd1a63 + cac7483 commit eb6863e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ const main = async () => {
console.log("All set!")
}

main()
main().catch((e) => {
core.setFailed(e)
})

function execWithOutput(command, args) {
return new Promise((resolve, reject) => {
Expand Down

0 comments on commit eb6863e

Please sign in to comment.