mirror of
https://github.com/github/codeql-action.git
synced 2026-04-26 16:58:47 +00:00
Move config saving within try-catch
This commit is contained in:
Generated
+1
-1
@@ -92878,6 +92878,7 @@ exec ${goBinaryPath} "$@"`
|
||||
}
|
||||
}
|
||||
flushDiagnostics(config);
|
||||
await saveConfig(config, logger);
|
||||
core13.setOutput("codeql-path", config.codeQLCmd);
|
||||
core13.setOutput("codeql-version", (await codeql.getVersion()).version);
|
||||
} catch (unwrappedError) {
|
||||
@@ -92901,7 +92902,6 @@ exec ${goBinaryPath} "$@"`
|
||||
} finally {
|
||||
logUnwrittenDiagnostics();
|
||||
}
|
||||
await saveConfig(config, logger);
|
||||
await sendCompletedStatusReport(
|
||||
startedAt,
|
||||
config,
|
||||
|
||||
+6
-6
@@ -730,6 +730,12 @@ async function run() {
|
||||
// did not exist until now.
|
||||
flushDiagnostics(config);
|
||||
|
||||
// We save the config here instead of at the end of `initConfig` because we
|
||||
// may have updated the config returned from `initConfig`, e.g. to revert to
|
||||
// `OverlayDatabaseMode.None` if we failed to download an overlay-base
|
||||
// database.
|
||||
await configUtils.saveConfig(config, logger);
|
||||
|
||||
core.setOutput("codeql-path", config.codeQLCmd);
|
||||
core.setOutput("codeql-version", (await codeql.getVersion()).version);
|
||||
} catch (unwrappedError) {
|
||||
@@ -752,12 +758,6 @@ async function run() {
|
||||
} finally {
|
||||
logUnwrittenDiagnostics();
|
||||
}
|
||||
|
||||
// We save the config here instead of at the end of `initConfig` because we
|
||||
// may have updated the config returned from `initConfig`, e.g. to revert to
|
||||
// `OverlayDatabaseMode.None` if we failed to download an overlay-base
|
||||
// database.
|
||||
await configUtils.saveConfig(config, logger);
|
||||
await sendCompletedStatusReport(
|
||||
startedAt,
|
||||
config,
|
||||
|
||||
Reference in New Issue
Block a user