mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-02-02 23:39:03 +00:00
better change detection
This commit is contained in:
parent
ee2bcafce3
commit
d54e0ae98b
@ -40,7 +40,14 @@ main() {
|
||||
echo "Identifying changed charts since tag '$latest_tag'..."
|
||||
|
||||
local changed_charts=()
|
||||
readarray -t changed_charts <<< "$(find "$(git diff --find-renames --name-only "$latest_tag_rev" -- .)" -type f -iname 'Chart.yaml' | cut -d '/' -f 1 | uniq)"
|
||||
git diff --find-renames --name-only comcast-1.0.5 -- . | cut -d '/' -f 1 | uniq > /tmp/modified_dirs.txt
|
||||
while read -r dir; do
|
||||
echo "checking $dir"
|
||||
if find "$dir" -type f -iname "Chart.yaml" | grep -E -q 'Chart.yaml'; then
|
||||
changed_charts+=($dir)
|
||||
fi
|
||||
done < /tmp/modified_dirs.txt
|
||||
rm /tmp/modified_dirs.txt
|
||||
|
||||
if [[ -n "${changed_charts[*]}" ]]; then
|
||||
for chart in "${changed_charts[@]}"; do
|
||||
|
Loading…
Reference in New Issue
Block a user