CI: build: fix external toolchain use with release tag tests
[openwrt/openwrt.git] / .github / workflows / build.yml
index 1c665cb8698c71717441715b4676cbb590e0d1da..ce8f30dd18f4c634648076197584f234cb210aba 100644 (file)
@@ -167,7 +167,7 @@ jobs:
           fi
 
           if [ -n "$major_ver" ]; then
-            git fetch --tags
+            git fetch --tags -f
             latest_tag="$(git tag --sort=-creatordate -l $major_ver* | head -n1)"
             if [ -n "$latest_tag" ]; then
               TOOLCHAIN_PATH=releases/$(echo $latest_tag | sed 's/^v//')