Skip to content

Commit

Permalink
sort versions in in lexicographic (#2855)
Browse files Browse the repository at this point in the history
  • Loading branch information
wey-gu authored Jun 25, 2023
1 parent e09d540 commit 90389c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ jobs:
break
if not found:
json_data.append(new_content)
json_data = sorted(json_data, key=lambda x: x['version'], reverse=True)
with open('./versions.json', 'w') as outfile:
json.dump(json_data, outfile, indent=2)
shell: python
Expand Down

0 comments on commit 90389c4

Please sign in to comment.