fix yq. set -o=json
This commit is contained in:
@@ -66,7 +66,7 @@ jobs:
|
||||
for file in ${ALL_CHANGED_FILES}; do
|
||||
[ -z "$file" ] && continue
|
||||
echo "=== Validating: $file ==="
|
||||
MANIFESTS=$(yq e '.[]' "$file" | jq -c 'select(.kind != null)')
|
||||
MANIFESTS=$(yq e -o=json '.[]' "$file" | jq -c 'select(.kind != null)')
|
||||
|
||||
for manifest in "${MANIFESTS[@]}"; do
|
||||
KIND=$(echo $manifest | yq -r '.kind // ""')
|
||||
|
||||
Reference in New Issue
Block a user