From f5af1eef1ce47fb8d38fb3a2d737b34a04d06020 Mon Sep 17 00:00:00 2001 From: Erik Jaegervall Date: Mon, 10 Jun 2024 10:46:04 +0200 Subject: [PATCH] Include 404, exclude # Disabling checks on internal links as framewrok is not really stable there yet. Also giving a bit more of output --- check-markdown/action.yml | 2 +- check-markdown/config.json | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 check-markdown/config.json diff --git a/check-markdown/action.yml b/check-markdown/action.yml index a965ac7..bda4c06 100644 --- a/check-markdown/action.yml +++ b/check-markdown/action.yml @@ -12,4 +12,4 @@ runs: run: | npm install -g markdown-link-check markdown-link-check --version - find . -name \*.md -print0 | xargs -0 -n1 markdown-link-check -q -a 403,200,404 + find . -name \*.md -print0 | xargs -0 -n1 markdown-link-check -c $GITHUB_ACTION_PATH/config.json -a 403,200 diff --git a/check-markdown/config.json b/check-markdown/config.json new file mode 100644 index 0000000..e49cae2 --- /dev/null +++ b/check-markdown/config.json @@ -0,0 +1,7 @@ +{ + "ignorePatterns": [ + { + "pattern": "^#" + } + ] +}