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
No known key found for this signature in database
GPG key ID: 84302E7B02FE8BCE
3 changed files with 4 additions and 4 deletions

2
lib/init-action.js generated
View file

@ -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}`);