unicode check action #1

Closed
paspo wants to merge 28 commits from unicode-check into main
Showing only changes of commit 8e424fe5cf - Show all commits

View File

@ -16,10 +16,8 @@ jobs:
- name: Check for disallowed chars - name: Check for disallowed chars
run: | 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]' ) 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 echo "::debug::Occorrenze: $num"
exit 0 if [ ! "$num" = "0" ] ; then
else echo "::error trovate $num occorrenze di caratteri non permessi"
exit 1
fi fi