From bd0f7e554eeabe28b3757af6e88946de23830fab Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Thu, 8 Aug 2024 10:35:54 +0200 Subject: [PATCH] Exclude images but include other URLs --- .github/actions/lint-jsonschema/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/lint-jsonschema/action.yml b/.github/actions/lint-jsonschema/action.yml index fa3ff17e..6766b4cb 100644 --- a/.github/actions/lint-jsonschema/action.yml +++ b/.github/actions/lint-jsonschema/action.yml @@ -83,7 +83,7 @@ runs: rc=1 fi fi - done < <(grep -oE "link:+[^#\[]*" "$(basename "$file")" | sed -E "s/^link:+//g") + done < <(grep -hoE 'link:[^\[]*|image::?[^\[]*|[a-z]*://[^\["[:space:]]*' "$(basename "$file")" | grep -v '^image:' | sed -E "s/^link:+//g") popd > /dev/null done < <(find . -type f -name "*.adoc")