Update .gitea/workflows/yaml-lint.yml

This commit is contained in:
2026-01-26 01:34:10 +00:00
parent 5fc2fe7cdc
commit 0c8e63f4b0

View File

@ -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