File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ RELEASES=$(gh api graphql -F owner='kubernetes' -F name='kubernetes' -f query='q
2121while IFS= read -r VERSION; do
2222 PREFIX=$( echo " $VERSION " | cut -d. -f1,2)
2323 echo " Checking version for $VERSION - using $PREFIX to search..."
24- NEWEST_OPTION=$( echo " $RELEASES " | grep " $PREFIX " | sort -rn | head -1)
24+ NEWEST_OPTION=$( echo " $RELEASES " | grep " $PREFIX " | sort -rV | head -1)
2525 if [ " $VERSION " == " $NEWEST_OPTION " ]; then
2626 echo " Nothing to update - $VERSION already newest patch for that Major.Minor"
2727 # If the version is the same, keep the original line
Original file line number Diff line number Diff line change 6161 - name : Check for changes
6262 if : ${{ env.is_supported == 'true' }}
6363 run : |
64- rm -f .github/scripts/update-script.sh
65- git restore --staged --worktree .github/scripts/update-script.sh || true
64+ rm -f .github/scripts/bump-kubectl-patch-versions
65+ git restore --staged --worktree .github/scripts/bump-kubectl-patch-versions || true
6666
6767 if git diff --quiet; then
6868 echo "No changes detected."
You can’t perform that action at this time.
0 commit comments