diff --git a/.gitea/workflows/yaml-lint.yml b/.gitea/workflows/yaml-lint.yml index 2e47c0918..9b5fe7140 100644 --- a/.gitea/workflows/yaml-lint.yml +++ b/.gitea/workflows/yaml-lint.yml @@ -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