mirror of
https://github.com/bitnami/charts.git
synced 2026-02-19 19:47:22 +08:00
[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:
committed by
GitHub
parent
26fe6f8799
commit
4c64e83ab4
2
.github/workflows/vib-early-feedback.yaml
vendored
2
.github/workflows/vib-early-feedback.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user