Skip to content

Commit f68e306

Browse files
committed
[website] Build versioned docs in descending order
1 parent 7a135dd commit f68e306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/build_versioned_docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ cd "$TEMP_DIR" || { echo "Failed to enter temporary directory"; exit 1; }
4141

4242
# Match branches in the format "release-x.y"
4343
regex='release-[0-9]+\.[0-9]+$' # Regular expression to match release-x.y
44-
branches=$(git branch -a | grep -E "$regex") # Filter branches that match the criteria
44+
branches=$(git branch -a | grep -E "$regex"| sort -r) # Filter branches that match the criteria
4545

4646
# Exit the script if no matching branches are found
4747
if [ -z "$branches" ]; then

0 commit comments

Comments
 (0)