Skip to content

Commit 664ad1a

Browse files
committed
Do not attempt to upload undefined status reports
1 parent 0d17ea4 commit 664ad1a

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

lib/status-report.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/status-report.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/status-report.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,13 @@ const INCOMPATIBLE_MSG =
392392
export async function sendStatusReport<S extends StatusReportBase>(
393393
statusReport: S,
394394
): Promise<void> {
395+
if (statusReport === undefined) {
396+
core.warning(
397+
`Not uploading a status report, because of an internal problem.`,
398+
);
399+
return;
400+
}
401+
395402
setJobStatusIfUnsuccessful(statusReport.status);
396403

397404
const statusReportJSON = JSON.stringify(statusReport);

0 commit comments

Comments
 (0)