CI: build: fix external toolchain use with release tag tests
[openwrt/openwrt.git] / .github / workflows / build.yml
index 42db3669acee1927d5343c45d2209f73a30f3517..c892857999c12fa4d567a64882de47935972f187 100644 (file)
@@ -169,7 +169,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//')