mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-16 21:38:23 +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.
This commit is contained in:
parent
86d2809b77
commit
a416af51a4
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
|
# Check if this ref is for a released version
|
||||||
if [ "$site_subdir" != "master" ]; then
|
if [ "$site_subdir" != "master" ]; then
|
||||||
_base_tag=`git describe --abbrev=0 || :`
|
_base_tag=`git describe --abbrev=0 --match "v*" || :`
|
||||||
case "$_base_tag" in
|
case "$_base_tag" in
|
||||||
$site_subdir*)
|
$site_subdir*)
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue