Update hotfix script

This commit is contained in:
Willy-JL
2023-06-03 04:08:05 +01:00
parent 6326b7ff1f
commit 25eed74201
6 changed files with 42 additions and 19 deletions

View File

@@ -81,3 +81,7 @@ if __name__ == "__main__":
if not req.ok:
print(f"{req.url = }\n{req.status_code = }\n{req.content = }")
sys.exit(1)
changelog = body.split("## 🚀 Changelog", 1)[1].rsplit("## ❤️ Support", 1)[0]
with open(os.environ["ARTIFACT_TGZ"].removesuffix(".tgz") + ".md", "w") as f:
f.write(changelog.strip() + "\n\n")