Fail the analyze action when some language fails to run the queries
This commit is contained in:
parent
6ac5978b44
commit
d6287621f6
6 changed files with 39 additions and 7 deletions
3
lib/analyze-action.js
generated
3
lib/analyze-action.js
generated
|
|
@ -44,6 +44,9 @@ async function run() {
|
|||
catch (error) {
|
||||
core.setFailed(error.message);
|
||||
console.log(error);
|
||||
if (error instanceof analyze_1.CodeQLAnalysisError) {
|
||||
stats = { ...error.queriesStatusReport };
|
||||
}
|
||||
await sendStatusReport(startedAt, stats, error);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue