Skip to content

Commit c129a50

Browse files
committed
Add versioning
1 parent a6a6b1a commit c129a50

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/nextjs.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ jobs:
5555
5656
# Extract all tags that look like v1.2.3
5757
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:]
5867
5968
# Build mapping: minor -> list of patch tags
6069
minor_to_patches = {}

0 commit comments

Comments
 (0)