Don't fail build jobs if report generation fails.

Fixes #24.
This commit is contained in:
Fabio Niephaus
2022-12-01 13:36:35 +01:00
parent a20b6434b3
commit 778af55c2a
4 changed files with 39 additions and 35 deletions

View File

@@ -101,7 +101,7 @@ export async function setUpNativeImageBuildReports(
) // Escape backslashes for Windows
}
export function generateReports(): void {
export async function generateReports(): Promise<void> {
if (areJobReportsEnabled() || arePRReportsEnabled()) {
if (!fs.existsSync(BUILD_OUTPUT_JSON_PATH)) {
core.warning(