From cac7483de070fde194bf7397a83363b20f1b5b98 Mon Sep 17 00:00:00 2001 From: Ben Tea Date: Tue, 17 Aug 2021 18:41:27 -0700 Subject: [PATCH] fix unhandled promise rejection --- src/index.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.jsx b/src/index.jsx index 2f2f048..4ed8988 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -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) => {