Skip to content

Commit 54f3e52

Browse files
author
Simon Engledew
committed
Move setOutput into try block in case it errors
1 parent ff6db59 commit 54f3e52

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/init-action.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/init-action.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ async function run() {
176176
);
177177
}
178178
}
179+
180+
core.setOutput("codeql-path", config.codeQLCmd);
179181
} catch (error) {
180182
core.setFailed(error.message);
181183
console.log(error);
@@ -191,8 +193,6 @@ async function run() {
191193
return;
192194
}
193195
await sendSuccessStatusReport(startedAt, config);
194-
195-
core.setOutput("codeql-path", config.codeQLCmd);
196196
}
197197

198198
run().catch((e) => {

0 commit comments

Comments
 (0)