Unconditionally report unwritten diagnostics at the end of the init Action

This commit is contained in:
Michael B. Gale 2024-04-12 14:00:33 +01:00
parent 3901d1208a
commit 1ac88f37c7
No known key found for this signature in database
GPG key ID: FF5E2765BD00628F
6 changed files with 41 additions and 4 deletions

View file

@ -16,7 +16,12 @@ import {
import { getGitHubVersion } from "./api-client";
import { CodeQL } from "./codeql";
import * as configUtils from "./config-utils";
import { addDiagnostic, flushDiagnostics, makeDiagnostic } from "./diagnostics";
import {
addDiagnostic,
flushDiagnostics,
logUnwrittenDiagnostics,
makeDiagnostic,
} from "./diagnostics";
import { EnvVar } from "./environment";
import { Feature, Features } from "./feature-flags";
import { checkInstallPython311, initCodeQL, initConfig, runInit } from "./init";
@ -541,6 +546,8 @@ async function run() {
error,
);
return;
} finally {
logUnwrittenDiagnostics();
}
await sendCompletedStatusReport(
startedAt,