File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,14 @@ if ! git remote get-url upstream &>/dev/null; then
2626 git remote add " upstream" https://github.com/kubernetes/kubernetes.git
2727fi
2828
29- # Fetch upstream tags
30- git fetch --tags --quiet upstream || true
31-
3229# Process each tag
3330for tag in $NEW_TAGS ; do
3431 echo " ========================================================================================"
3532 echo " [INFO] Processing version: ${tag} "
3633
34+ # Fetch the specific tag from upstream
35+ git fetch upstream refs/tags/${tag} :refs/tags/${tag} --no-tags
36+
3737 # Skip if tag > MAX_VERSION
3838 if [[ " $( printf ' %s\n' " $tag " " $MAX_VERSION " | sort -V | tail -1) " == " $tag " ]]; then
3939 echo " [INFO] Skipping version $tag as it is >= $MAX_VERSION "
You can’t perform that action at this time.
0 commit comments