diff --git a/src/index.js b/src/index.js index 8fae0868..2a435b40 100644 --- a/src/index.js +++ b/src/index.js @@ -236,4 +236,10 @@ async function run() { } } +process.on('unhandledRejection', (reason, promise) => { + let error = `Unhandled Rejection occurred. ${reason.stack}` + console.error(error) + core.setFailed(error) +}); + run()