Move setOutput into try block in case it errors
This commit is contained in:
parent
ff6db59d5a
commit
54f3e52e8f
3 changed files with 4 additions and 4 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue