fix: ensure extract_plugin_versions.py output ends with newline to prevent GH Actions EOF error

This commit is contained in:
fujie
2026-01-03 16:00:50 +08:00
parent 782378eed8
commit 9be6fe08fa

View File

@@ -295,6 +295,8 @@ def main():
if args.output:
with open(args.output, "w", encoding="utf-8") as f:
f.write(output)
if not output.endswith("\n"):
f.write("\n")
print(f"Output written to {args.output}")
else:
print(output)