Skip to content

Commit

Permalink
WF: Improve fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Josverl committed Nov 11, 2024
1 parent 41e9f77 commit f58be72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/actions/get-mpversions/list_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ def micropython_versions(start="v1.10"):
tags = sorted([tag.name for tag in repo.get_tags() if "-preview" not in tag.name and parse(tag.name) >= parse(start)], reverse=True)
except Exception as e:
print(f"Error: {e}")
tags = ["v1.24.0"]
tags = ["preview", "stable"]
return tags

def major_minor(versions):
"""create a list of the most recent version for each major.minor"""
mm_groups = {}
for v in versions:
if v in ["stable", "preview"]:
continue
major_minor = f"{Version(v).major}.{Version(v).minor}"
if major_minor not in mm_groups:
mm_groups[major_minor] = [v]
Expand Down

0 comments on commit f58be72

Please sign in to comment.