Skip to content

Commit

Permalink
[MIRROR] fixed generate_cl yaml loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Spookerton authored and SierraHelper committed Oct 26, 2023
1 parent 4400f33 commit 855d084
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/changelog/generate_cl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'] = []

Expand All @@ -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)
Expand All @@ -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

0 comments on commit 855d084

Please sign in to comment.