Skip to content
Snippets Groups Projects
Commit b0116408 authored by Martin Schroschk's avatar Martin Schroschk
Browse files

Merge branch 'markdownlintrc' into 'preview'

.markdownlintrc verschoben

See merge request !299
parents e090ed17 0c956bff
No related branches found
No related tags found
3 merge requests!322Merge preview into main,!319Merge preview into main,!299.markdownlintrc verschoben
File moved
......@@ -7,13 +7,16 @@ if [ -n "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" ]; then
branch="origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"
fi
configfile=$(dirname $0)/../.markdownlintrc
echo "config: $configfile"
any_fails=false
files=$(git diff --name-only "$(git merge-base HEAD "$branch")")
for f in $files; do
if [ "${f: -3}" == ".md" ]; then
echo "Linting $f"
if ! markdownlint "$f"; then
if ! markdownlint -c $configfile "$f"; then
any_fails=true
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment