fix(values-ascii-check): amend regexp to detect non-ascii characters (#36415)

Signed-off-by: Fran Mulero <francisco-jose.mulero@broadcom.com>
This commit is contained in:
Fran Mulero
2025-12-16 13:06:01 +01:00
committed by GitHub
parent 120809dd18
commit 88ad8b9cc8

View File

@@ -30,7 +30,7 @@ jobs:
values_files="$(echo "$files_changed" | grep -o ".*values\.yaml$" | sort | uniq || true)"
# Create an empty file, useful when the PR changes ignored files
touch "${TEMP_OUTPUT}"
grep -nHP "[\x80-\xFF]" "${values_files[@]}" | sort -u > ${TEMP_OUTPUT} || true
LC_ALL=C grep -nHP '[^\x00-\x7F]' "${values_files[@]}" | sort -u > ${TEMP_OUTPUT} || true
while read -r line; do
# line format:
# file:row:message