test13
Some checks failed
Check for disallowed chars / unicode-check (pull_request) Failing after 3m3s

This commit is contained in:
Paolo Asperti 2024-08-05 21:55:59 +02:00
parent e5aa98e725
commit a0cb1817d3
Signed by: paspo
GPG Key ID: 06D46905D19D5182

View File

@ -16,10 +16,8 @@ jobs:
- name: Check for disallowed chars
run: |
set -x
num=$(git diff --unified=0 ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} content/ | grep -E "^[+]" | grep -Ev '^(--- a/|\+\+\+ b/)' | grep -c -e '[\u2014]' -e '[\u2018]' -e '[\u2019]' -e '[\u201C]' -e '[\u201D]' -e '[\u2026]' )
if [ "$num" = "0" ] ; then
exit 0
else
exit 1
echo "::debug::Occorrenze: $num"
if [ ! "$num" = "0" ] ; then
echo "::error trovate $num occorrenze di caratteri non permessi"
fi