We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6a6b1a commit c129a50Copy full SHA for c129a50
.github/workflows/nextjs.yml
@@ -55,6 +55,15 @@ jobs:
55
56
# Extract all tags that look like v1.2.3
57
patch_tags = [tag for tag in tags if re.match(r'^v\d+\.\d+\.\d+$', tag)]
58
+
59
+ # Extract all tags that look like v1.2.3 and sort them (version sort)
60
+ patch_tags = sorted(
61
+ [tag for tag in tags if re.match(r'^v\d+\.\d+\.\d+$', tag)],
62
+ key=lambda tag: [int(x) for x in re.findall(r'\d+', tag)]
63
+ )
64
65
+ # Take the top 30 most recent tags
66
+ patch_tags = patch_tags[-30:]
67
68
# Build mapping: minor -> list of patch tags
69
minor_to_patches = {}
0 commit comments