From b43ee99f652955c9fdc6852642bada287a0a6ccc Mon Sep 17 00:00:00 2001 From: paspo Date: Wed, 7 Aug 2024 21:15:41 +0200 Subject: [PATCH] test14 --- .gitea/workflows/unicode_check.yaml | 28 +++++++++++++++++++++++----- .markdownlint.yaml | 6 ++++++ 2 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 .markdownlint.yaml diff --git a/.gitea/workflows/unicode_check.yaml b/.gitea/workflows/unicode_check.yaml index 8f5ef95..70a7a80 100644 --- a/.gitea/workflows/unicode_check.yaml +++ b/.gitea/workflows/unicode_check.yaml @@ -15,9 +15,27 @@ jobs: fetch-depth: 0 - name: Check for disallowed chars + id: file-lister 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 + echo "FILELIST=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} content/ )" >> "$GITHUB_OUTPUT" + + - name: markdownlint-cli + # env: + # FILELIST: ${{ steps.file-lister.outputs.FILELIST }} + uses: nosborn/github-action-markdown-cli@v3.3.0 + with: + files: ${{ steps.file-lister.outputs.FILELIST }} + config_file: .markdownlint.yaml + dot: false + # rules: examples/rules/custom.js + + + # 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 + + + +# git diff --name-only e2ec2669247fb8a6643e6456205a0faf821156de 55ebacd78d0e1244db5654cc1daa71a229450d4c content/ diff --git a/.markdownlint.yaml b/.markdownlint.yaml new file mode 100644 index 0000000..42d7f74 --- /dev/null +++ b/.markdownlint.yaml @@ -0,0 +1,6 @@ +--- +default: true +MD013: false + +# MD013: { stern: true } +# MD024: { siblings_only: true }