test 22
All checks were successful
Check for disallowed chars / unicode-check (pull_request) Successful in 8m13s

This commit is contained in:
Paolo Asperti 2024-08-09 22:25:51 +02:00
parent 2d973212d8
commit 261b1604a1
Signed by: paspo
GPG Key ID: 06D46905D19D5182
4 changed files with 16 additions and 11 deletions

15
.gitea/workflows/markdownlint_pr.sh Normal file → Executable file
View File

@ -1,9 +1,16 @@
#!/bin/bash #!/bin/bash
echo
echo "Initial commit: $1" echo "Initial commit: $1"
echo "Final commit: $2" echo "Final commit: $2"
echo "" echo
# recupera ogni file modificato in questa PR (tra le 2 commit)
# considera solo i file che terminano con .md
# ogni file viene controllato con markdownlint, con la config comune
while read -r LINE; do while read -r LINE; do
echo "" echo
mdl --config .markdownlint.yaml "$LINE" echo "testing file: $LINE"
done < <(git diff --name-only $1 $2 content/ | grep \.md$) markdownlint --config .markdownlint.yaml "$LINE"
done < <(git diff --name-only "$1" "$2" content/ | grep \.md$)

View File

@ -15,10 +15,10 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: vai - name: vai
uses: docker://registry.gitlab.com/pipeline-components/markdownlint:latest uses: docker://ghcr.io/igorshubovych/markdownlint-cli
with: with:
entrypoint: /bin/sh entrypoint: /bin/sh
args: -c 'apk -U add bash ; bash .gitea/workflows/markdownlint_pr.sh ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}' args: -c 'apk -U add git bash ; bash .gitea/workflows/markdownlint_pr.sh ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}'
# - name: Getting changed files # - name: Getting changed files
# id: file-lister # id: file-lister

View File

@ -1,7 +1,4 @@
--- # vedi: https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.yaml
default: true default: true
MD013: false MD013: false
# line_length: 8000
# MD013: { stern: true }
# MD024: { siblings_only: true }

View File

@ -6,5 +6,6 @@ invalid char: ``
asdasd asdasd
asdaksjdlaj slkas jdlkajs ldkasj lkasj dlkasjdlk ajsldkajs dlkjasklsaj lkaj sldkj lkej lkeajf alsdkjf asldkfj asdaksjdlaj slkas jdlkajs ldkasj lkasj dlkasjdlk ajsldkajs dlkjasklsaj lkaj sldkj lkej lkeajf alsdkjf asldkfj
anche!!! anche!!!