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
2
lib/init-action.js
generated
2
lib/init-action.js
generated
|
|
@ -92,6 +92,7 @@ async function run() {
|
|||
await init_1.injectWindowsTracer("Runner.Worker.exe", undefined, config, codeql, tracerConfig);
|
||||
}
|
||||
}
|
||||
core.setOutput("codeql-path", config.codeQLCmd);
|
||||
}
|
||||
catch (error) {
|
||||
core.setFailed(error.message);
|
||||
|
|
@ -100,7 +101,6 @@ async function run() {
|
|||
return;
|
||||
}
|
||||
await sendSuccessStatusReport(startedAt, config);
|
||||
core.setOutput("codeql-path", config.codeQLCmd);
|
||||
}
|
||||
run().catch((e) => {
|
||||
core.setFailed(`init action failed: ${e}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue