test 19
Some checks failed
Check for disallowed chars / unicode-check (pull_request) Failing after 2m30s

This commit is contained in:
Paolo Asperti 2024-08-08 20:25:26 +02:00
parent 7eeb1c726b
commit 2ed4bf56bf
Signed by: paspo
GPG Key ID: 06D46905D19D5182
2 changed files with 20 additions and 26 deletions

View File

@ -20,38 +20,21 @@ jobs:
run: | run: |
echo "Initial commit: ${{ github.event.pull_request.base.sha }}" echo "Initial commit: ${{ github.event.pull_request.base.sha }}"
echo "Final commit: ${{ github.event.pull_request.head.sha }}" echo "Final commit: ${{ github.event.pull_request.head.sha }}"
while read LINE; do
F="$F \"${LINE}\""
done < <(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} content/ | grep \.md$)
echo "File list:" echo "File list:"
echo "$F" while read LINE; do
echo $LINE
LINASDASDSAE=$(printf %q "$LINE")
F="$F $(echo "${LINE}"|sed 's/\ /\\ /')"
done < <(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} content/ | grep \.md$)
echo "FILELIST=$F" >> "$GITHUB_OUTPUT" echo "FILELIST=$F" >> "$GITHUB_OUTPUT"
- name: Check check check - name: Markdown Lint
shell: bash
env: env:
FILELIST: ${{ steps.file-lister.outputs.FILELIST }} FILELIST: ${{ steps.file-lister.outputs.FILELIST }}
run: |
echo FILELIST:
echo $FILELIST
- name: Markdown Lint
# env:
# FILELIST: ${{ steps.file-lister.outputs.FILELIST }}
uses: nosborn/github-action-markdown-cli@v3.3.0 uses: nosborn/github-action-markdown-cli@v3.3.0
with: with:
files: "${{ steps.file-lister.outputs.FILELIST }}" files: "${{ env.FILELIST }}"
# entrypoint: /bin/sh
# args: -c 'set'
config_file: .markdownlint.yaml config_file: .markdownlint.yaml
dot: false 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/

11
content/delme anche.md Normal file
View File

@ -0,0 +1,11 @@
---
title: no
---
invalid char: ``
asdasd
asdaksjdlaj slkas jdlkajs ldkasj lkasj dlkasjdlk ajsldkajs dlkjasklsaj lkaj sldkj lkej lkeajf alsdkjf asldkfj
anche!!!