Skip to content

Commit a416af5

Browse files
committed
scripts/update-gh-pages: fix release version parsing
When determining the release branch only consider "main" release tags, refusing to pick api/nfd/v* tags.
1 parent 86d2809 commit a416af5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/github/update-gh-pages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ site_subdir=${site_subdir:-master}
105105

106106
# Check if this ref is for a released version
107107
if [ "$site_subdir" != "master" ]; then
108-
_base_tag=`git describe --abbrev=0 || :`
108+
_base_tag=`git describe --abbrev=0 --match "v*" || :`
109109
case "$_base_tag" in
110110
$site_subdir*)
111111
;;

0 commit comments

Comments
 (0)