[bitnami/*]: test: 🚑 Fix incorrect version bump detection (#9066)

The check in the version bump was using the wrong file list. This PR fixes it.
This commit is contained in:
Javier J. Salmerón-García
2022-02-18 10:13:38 +01:00
committed by GitHub
parent 26fe6f8799
commit 4c64e83ab4

View File

@@ -35,7 +35,7 @@ jobs:
charts_dirs_changed="$(echo "$files_changed" | xargs dirname | grep -o "bitnami/[^/]*" | sort | uniq || true)"
# Using grep -c as a better alternative to wc -l when dealing with empty strings."
num_charts_changed="$(echo "$charts_dirs_changed" | grep -c "bitnami" || true)"
num_version_bumps="$(echo "$charts_dirs_changed" | grep Chart.yaml | xargs git diff origin/master | grep -c "+version" || true)"
num_version_bumps="$(echo "$files_changed" | grep Chart.yaml | xargs git diff origin/master | grep -c "+version" || true)"
if [[ "$num_charts_changed" -ne "$num_version_bumps" ]]; then
# Changes done in charts but version not bumped -> ERROR