diff --git a/.github/scripts/tc-lint.sh b/.github/scripts/tc-lint.sh index 9be3abcf459..e7831282713 100755 --- a/.github/scripts/tc-lint.sh +++ b/.github/scripts/tc-lint.sh @@ -12,10 +12,10 @@ function check_version() { curr_result=1 fi - echo -e "\t🔙 Old Chart Version: $old" - echo -e "\t🆕 New Chart Version: $new" - if [[ -n "$new" ]]; then + echo -e "\t🔙 Old Chart Version: $old" + echo -e "\t🆕 New Chart Version: $new" + if [[ $(echo "$new\n$old" | sort -V -r | head -n1) != "$old" ]]; then echo -e "\t✅ Chart version: Bumped" else