@@ -32,7 +32,7 @@ set -euo pipefail
3232# ==============================================================================
3333
3434function main() {
35-
35+ echo " CHECKING MARKDOWN!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! "
3636 cd " $( git rev-parse --show-toplevel) "
3737
3838 check=${check:- working-tree-changes}
@@ -64,7 +64,7 @@ function main() {
6464# Arguments (provided as environment variables):
6565# files=[files to check]
6666function run-markdownlint-natively() {
67-
67+ echo " RUNNING MARKDOWN LINT NATIVELY "
6868 # shellcheck disable=SC2086
6969 markdownlint \
7070 $files \
@@ -75,18 +75,25 @@ function run-markdownlint-natively() {
7575# Arguments (provided as environment variables):
7676# files=[files to check]
7777function run-markdownlint-in-docker() {
78-
78+ echo " RUNNING MARKDOWN LINT IN DOCKER "
7979 # shellcheck disable=SC1091
8080 source ./scripts/docker/docker.lib.sh
8181
8282 # shellcheck disable=SC2155
8383 local image=$( name=ghcr.io/igorshubovych/markdownlint-cli docker-get-image-version-and-pull)
8484 # shellcheck disable=SC2086
85+
86+ echo " Config:"
87+ cat scripts/config/markdownlint.yaml
88+
89+ set -x
8590 docker run --rm --platform linux/amd64 \
8691 --volume " $PWD " :/workdir \
8792 " $image " \
8893 $files \
8994 --config /workdir/scripts/config/markdownlint.yaml
95+
96+ set +x
9097}
9198
9299# ==============================================================================
0 commit comments