adding failed job exit

This commit is contained in:
2026-01-26 00:28:46 +00:00
parent 3bb350ee18
commit 321da2a166

View File

@ -56,9 +56,13 @@ jobs:
for file in ${{ steps.changed-files.outputs.changed_files }}; do
if LC_ALL=C grep --color='auto' -P -n "[^\x00-\x7F]" $file &>/dev/null; then
echo "$file contains non-unicode characters!"
LC_ALL=C grep --color='auto' -P -n "[^\x00-\x7F]" $file
failed_job=true
fi
done
if [ "$failed_job" = true ] ; then
exit 1
fi
- name: Install yamllint
run: |
sudo apt-get update