forked from BgLUG/bglug.it
unicode check action #1
@ -18,10 +18,8 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -x
|
set -x
|
||||||
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=$(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]' )
|
||||||
|
|
||||||
echo "modifiche: $modifiche"
|
|
||||||
echo "num: $num"
|
echo "num: $num"
|
||||||
exit 0
|
exit 0
|
||||||
if [ $num -gt 0 ] ; then exit 1 ; else echo "ok" ; done
|
if [ $num -gt 0 ] ; then exit 1 ; else echo "ok" ; done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user