diff --git a/src/main.ts b/src/main.ts index 4702fe012..02c046a91 100644 --- a/src/main.ts +++ b/src/main.ts @@ -38,9 +38,13 @@ async function cleanup(): Promise { // Main if (!stateHelper.IsPost) { - run() + run().catch(error => { + core.setFailed(error.message) + }) } // Post else { - cleanup() + cleanup().catch(error => { + core.setFailed(error.message) + }) }