mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
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.
(cherry picked from commit a416af51a4
)
This commit is contained in:
parent
2dc9589602
commit
f99c1dda41
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ site_subdir=${site_subdir:-master}
|
|||
|
||||
# Check if this ref is for a released version
|
||||
if [ "$site_subdir" != "master" ]; then
|
||||
_base_tag=`git describe --abbrev=0 || :`
|
||||
_base_tag=`git describe --abbrev=0 --match "v*" || :`
|
||||
case "$_base_tag" in
|
||||
$site_subdir*)
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue