Update source so github/no-then passes

This commit is contained in:
Eric Cornelissen 2020-11-25 22:45:53 +01:00
parent 35fd0a93b1
commit cd727934bf
4 changed files with 40 additions and 16 deletions

View file

@ -209,7 +209,13 @@ async function run() {
await sendSuccessStatusReport(startedAt, config, toolsVersion);
}
run().catch((e) => {
core.setFailed(`init action failed: ${e}`);
console.log(e);
});
async function runWrapper() {
try {
await run();
} catch (error) {
core.setFailed(`init action failed: ${error}`);
console.log(error);
}
}
void runWrapper();