From 855d0843a1219afe4d4073f1ca491094d7cae274 Mon Sep 17 00:00:00 2001 From: Spookerton <918997+Spookerton@users.noreply.github.com> Date: Thu, 26 Oct 2023 16:35:32 +0300 Subject: [PATCH] [MIRROR] fixed generate_cl yaml loading --- tools/changelog/generate_cl.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/changelog/generate_cl.py b/tools/changelog/generate_cl.py index 8d84218312374..ca33182b66dda 100644 --- a/tools/changelog/generate_cl.py +++ b/tools/changelog/generate_cl.py @@ -70,8 +70,9 @@ write_cl['delete-after'] = True +yaml = yaml.YAML(type='safe',pure=True) with open(Path.cwd().joinpath("tools/changelog/tags.yml")) as file: - tags = yaml.safe_load(file) + tags = yaml.load(file) write_cl['changes'] = [] @@ -83,7 +84,6 @@ if write_cl['changes']: with io.StringIO() as cl_contents: - yaml = yaml.YAML() yaml.indent(sequence=4, offset=2) yaml.dump(write_cl, cl_contents) cl_contents.seek(0) @@ -93,4 +93,8 @@ print("Done!") else: print("No CL changes detected!") +<<<<<<< ours exit(1) # Change to a '1' if you want the action to count lacking CL changes as a failure +======= + exit(0) # Change to a '1' if you want the action to count lacking CL changes as a failure +>>>>>>> theirs