use for loop

This commit is contained in:
2025-12-12 23:15:48 +05:30
parent 574b37d001
commit fbfce95e04

View File

@@ -63,7 +63,7 @@ jobs:
export KUBECONFORM_CACHE_DIR="/tmp/kubeconform-cache"
mkdir -p "$KUBECONFORM_CACHE_DIR"
while IFS= read -r file; do
for file in ${ALL_CHANGED_FILES}; do
[ -z "$file" ] && continue
echo "=== Validating: $file ==="
MANIFESTS=$(yq e '.[]' "$file" | jq -c 'select(.kind != null)')
@@ -95,6 +95,6 @@ jobs:
done
echo ""
done <<< "${ALL_CHANGED_FILES}"
done
exit $EXIT_CODE