Sort versions by date then version for all products (#179)

This commit is contained in:
Marc Wrobel
2023-11-12 22:03:45 +01:00
parent e2de82c403
commit 600e77e212
35 changed files with 92 additions and 168 deletions

View File

@@ -41,12 +41,6 @@ for branch in git.list_branches("refs/heads/enterprise-[4-9]*"):
print(f"::group::{PRODUCT}")
for version, date in versions.items():
print(f"{version}: {date}")
print("::endgroup::")
endoflife.write_releases(
PRODUCT,
dict(
# sort by date then version (desc)
sorted(versions.items(), key=lambda x: (x[1], x[0]), reverse=True)
),
)
endoflife.write_releases(PRODUCT, versions)
print("::endgroup::")