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

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

View File

@ -3,7 +3,12 @@
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" markdownlint --config .markdownlint.yaml "$LINE"
done < <(git diff --name-only $1 $2 content/ | grep \.md$) 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 }