Skip to content

Commit b292996

Browse files
committed
fix: skip table formatting when no articles are found (fixes #24)
1 parent ad7d77c commit b292996

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ async function run() {
5151
summary += errors + '\n';
5252
}
5353

54-
summary += formatResultsTable(results);
54+
if (results.length > 0) {
55+
summary += formatResultsTable(results);
56+
}
57+
5558
core.debug('Output result_summary:\n' + summary);
5659
core.setOutput('result_summary', summary);
5760
} catch (error) {

0 commit comments

Comments
 (0)