unicode check action #1

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

View File

@ -17,9 +17,7 @@ jobs:
- name: Check for disallowed chars
run: |
set -x
pwd
ls -la
ls -la content/
git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short $@
modifiche=$(git diff --unified=0 ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} content/ | grep -E "^[+]" | grep -Ev '^(--- a/|\+\+\+ b/)')
num=$(echo $modifiche | grep -c -e '[\u2014]' -e '[\u2018]' -e '[\u2019]' -e '[\u201C]' -e '[\u201D]' -e '[\u2026]' )
if [ $num -gt 0 ] ; then exit 1 ; done