MIL-010 task 6: reusable workflow code-metrics.yml and tools/code-metrics.sh
Task: MIL-010#6 Refs #160
This commit is contained in:
@@ -205,6 +205,8 @@ def main(argv: list[str] | None = None) -> int:
|
||||
f"::error::[configuration] metrics file '{args.metrics}' cannot be read: {error}"
|
||||
)
|
||||
return 1
|
||||
if file_count == 0:
|
||||
print("::notice::No code files were found; the badges show 0.")
|
||||
if coverage is None:
|
||||
print("::notice::No coverage-report given; no coverage badge is written.")
|
||||
metrics_json = json.dumps(metrics, indent=2, sort_keys=True) + "\n"
|
||||
|
||||
Reference in New Issue
Block a user