Skip to content

Commit

Permalink
Move setOutput into try block in case it errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Engledew committed Nov 4, 2020
1 parent ff6db59 commit 54f3e52
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/init-action.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/init-action.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/init-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ async function run() {
);
}
}

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

core.setOutput("codeql-path", config.codeQLCmd);
}

run().catch((e) => {
Expand Down

0 comments on commit 54f3e52

Please sign in to comment.