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
echo
echo "Initial commit: $1"
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
echo ""
mdl --config .markdownlint.yaml "$LINE"
done < <(git diff --name-only $1 $2 content/ | grep \.md$)
echo
echo "testing file: $LINE"
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
- name: vai
uses: docker://registry.gitlab.com/pipeline-components/markdownlint:latest
uses: docker://ghcr.io/igorshubovych/markdownlint-cli
with:
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
# id: file-lister

View File

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

View File

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