Skip to content

Commit f7216d6

Browse files
committed
by explicitly writing \n in the Python script after each job is rendered, we ensure that:
There is exactly one newline between jobs (separating them cleanly). There is exactly one newline at the end of the file (making it a valid text file).
1 parent 5c1e166 commit f7216d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/generate-jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def generate_one(path: pathlib.Path, verify: bool) -> typing.List[str]:
9999
)
100100
)
101101
header = ""
102-
102+
tmp.write("\n")
103103
out = template_path.parent / f"{template_path.stem}-{name}.yaml"
104104
if not os.path.exists(out):
105105
if verify:

0 commit comments

Comments
 (0)