use for loop instead of while
Some checks failed
Validate Kubernetes Manifests / kubeconform (pull_request) Failing after 18s

This commit is contained in:
2025-12-12 17:05:45 +05:30
parent 6359b735e6
commit 513bcc7779

View File

@@ -60,7 +60,7 @@ jobs:
export KUBECONFORM_CACHE_DIR="/tmp/kubeconform-cache" export KUBECONFORM_CACHE_DIR="/tmp/kubeconform-cache"
mkdir -p "$KUBECONFORM_CACHE_DIR" mkdir -p "$KUBECONFORM_CACHE_DIR"
while IFS= read -r file; do for file in ${ALL_CHANGED_FILES}; do
[ -z "$file" ] && continue [ -z "$file" ] && continue
echo "=== Validating: $file ===" echo "=== Validating: $file ==="
KIND=$(yq -r '.kind // ""' "$file" 2>/dev/null || echo "") KIND=$(yq -r '.kind // ""' "$file" 2>/dev/null || echo "")
@@ -88,6 +88,6 @@ jobs:
fi fi
echo "" echo ""
done <<< "${ALL_CHANGED_FILES[@]}" done
exit $EXIT_CODE exit $EXIT_CODE