Fail the analyze action when some language fails to run the queries

This commit is contained in:
David Verdeguer 2020-10-22 10:22:27 +02:00
parent 6ac5978b44
commit d6287621f6
6 changed files with 39 additions and 7 deletions

3
lib/analyze-action.js generated
View file

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