From fab5a463dea98dccc233e10f462b783ab83961e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Skyler=20M=C3=A4ntysaari?= Date: Sat, 29 Mar 2025 11:30:41 +0200 Subject: [PATCH] fix(ci): Strip whitespace from annotations string in release notes --- .github/scripts/renovate-releasenotes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/scripts/renovate-releasenotes.py b/.github/scripts/renovate-releasenotes.py index a18398a..9207dff 100755 --- a/.github/scripts/renovate-releasenotes.py +++ b/.github/scripts/renovate-releasenotes.py @@ -199,7 +199,7 @@ def main( if "annotations" not in new_chart_metadata: new_chart_metadata["annotations"] = CommentedMap() - new_chart_metadata["annotations"]["artifacthub.io/changes"] = LiteralScalarString(annotations_string) + new_chart_metadata["annotations"]["artifacthub.io/changes"] = LiteralScalarString(annotations_string.strip()) logger.debug(f"Annotations: {annotations_string}") logger.debug(new_chart_metadata) @@ -207,6 +207,7 @@ def main( new_chart_metadata = bump_patch_version(new_chart_metadata) with chart_metadata_file.open("w") as f: + yaml.exclude_start = False yaml.dump(new_chart_metadata, f)