Skip to content

Commit

Permalink
DBG: debugging announcement creation (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgepiloto authored Nov 28, 2022
2 parents 6224eba + b0d794b commit 3b5c1a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/version_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def update_switch_version_file(
with open(f"release/{announcement_filename}", "r") as announcement_file:
content = announcement_file.read()
announcement_content = content.format(version=latest_stable_version)
print(f"Announcement content is:\n{announcement_content}")
except FileNotFoundError:
# If no announcement file has been found, terminate this script
return
Expand All @@ -109,7 +110,9 @@ def update_switch_version_file(
]
for release_folder in old_release_folders:
# Create an 'announcement.html' file within each one of the old versions
with open(f"release/{release_folder.name}/announcement.html", "w") as file:
filename = f"release/{release_folder.name}/announcement.html"
with open(filename, "w") as file:
print(f"Writing {filename}")
file.write(announcement_content)


Expand Down

0 comments on commit 3b5c1a3

Please sign in to comment.