Closed threeal closed 6 months ago
Thank you for your contribution! We appreciate your interest in helping us make this action better. 🙇🏻 💝
While both of your statements are optimistically true, we have found that there are specific scenarios within GitHub Actions where having this forced process.exit()
invocation can prevent Node.js process hangups. Much safer for our consumers if we leave it intact. 🦺
This pull request refactor the
main
function in thesrc/index.js
file by removing call to theprocess.exit(1)
function because of the following reason:core.setFailed
function already set the exit code of the action to1
.main
function will exit anyway so there's no need to exit immediately by using theprocess.exit
function.