forked from BgLUG/bglug.it
paspo
a0cb1817d3
Some checks failed
Check for disallowed chars / unicode-check (pull_request) Failing after 3m3s
24 lines
757 B
YAML
24 lines
757 B
YAML
---
|
|
name: Check for disallowed chars
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
unicode-check:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: catthehacker/ubuntu:act-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Check for disallowed chars
|
|
run: |
|
|
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 "::debug::Occorrenze: $num"
|
|
if [ ! "$num" = "0" ] ; then
|
|
echo "::error trovate $num occorrenze di caratteri non permessi"
|
|
fi
|