1
0
Fork 0
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:
Markus Lehtonen 2024-12-12 11:01:17 +02:00
parent 2dc9589602
commit f99c1dda41

View file

@ -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*)
;;