use for loop instead of while
Some checks failed
Validate Kubernetes Manifests / kubeconform (pull_request) Failing after 18s
Some checks failed
Validate Kubernetes Manifests / kubeconform (pull_request) Failing after 18s
This commit is contained in:
@@ -60,7 +60,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 ==="
|
||||
KIND=$(yq -r '.kind // ""' "$file" 2>/dev/null || echo "")
|
||||
@@ -88,6 +88,6 @@ jobs:
|
||||
fi
|
||||
|
||||
echo ""
|
||||
done <<< "${ALL_CHANGED_FILES[@]}"
|
||||
done
|
||||
|
||||
exit $EXIT_CODE
|
||||
|
||||
Reference in New Issue
Block a user