forked from docs/doc-exports
adding failed job exit
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user