forked from docs/doc-exports
Update .gitea/workflows/yaml-lint.yml
This commit is contained in:
@ -52,6 +52,7 @@ jobs:
|
||||
echo "$file was changed"
|
||||
done
|
||||
- name: Check presence of non-unicode characters
|
||||
continue-on-error: true
|
||||
run: |
|
||||
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
|
||||
@ -60,10 +61,9 @@ jobs:
|
||||
failed_job=true
|
||||
fi
|
||||
done
|
||||
# To be uncommented later
|
||||
# if [ "$failed_job" = true ] ; then
|
||||
# exit 1
|
||||
# fi
|
||||
if [ "$failed_job" = true ] ; then
|
||||
exit 1
|
||||
fi
|
||||
- name: Install yamllint
|
||||
run: |
|
||||
sudo apt-get update
|
||||
|
||||
Reference in New Issue
Block a user