Skip to content
This repository was archived by the owner on May 2, 2023. It is now read-only.

Commit 0f90c47

Browse files
max function working with int values in versions
1 parent 1e7034a commit 0f90c47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/create-changelog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def parse_useast1_missing_types(release, version, item_type):
103103
versions = []
104104
for item in changelog_dir.iterdir():
105105
if item.suffix == '.json':
106-
versions.append(item.name.split('-')[0].replace('v',''))
106+
versions.append(int(item.name.split('-')[0].replace('v','')))
107107

108108
latest_major = max(versions)
109109
changelog_source_file = changelog_dir.joinpath(f"v{latest_major}-changelog.json")

0 commit comments

Comments
 (0)