Move setOutput into try block in case it errors

This commit is contained in:
Simon Engledew
2020-11-04 19:10:27 +00:00
parent ff6db59d5a
commit 54f3e52e8f
3 changed files with 4 additions and 4 deletions

View File

@@ -176,6 +176,8 @@ async function run() {
);
}
}
core.setOutput("codeql-path", config.codeQLCmd);
} catch (error) {
core.setFailed(error.message);
console.log(error);
@@ -191,8 +193,6 @@ async function run() {
return;
}
await sendSuccessStatusReport(startedAt, config);
core.setOutput("codeql-path", config.codeQLCmd);
}
run().catch((e) => {