From 8c3f55d6fdad66fbedcee792b615613adb587bf4 Mon Sep 17 00:00:00 2001 From: Neha Singh Date: Thu, 22 Feb 2024 21:14:34 -0500 Subject: [PATCH] Exclude google forms links from link checking --- .github/workflows/link-checker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/link-checker.yml b/.github/workflows/link-checker.yml index 1e0d41e3..34d0a7aa 100644 --- a/.github/workflows/link-checker.yml +++ b/.github/workflows/link-checker.yml @@ -54,7 +54,7 @@ jobs: cd web/gui-v2 find public -name "*.js" -exec grep -Eo "(http|https):\/\/[^]\{\}\"'\\\(\)\> ]+" {} \; | sort -u > linklist.txt printf '%s\n%s\n%s\n' "# LinkChecker URL list" "# " "$(cat linklist.txt)" > linklist.txt - linkchecker linklist.txt --check-extern --config=.linkcheckerrc --ignore-url="https://.*\.fastly\.net/.*" --ignore-url="https://.*\.mapbox\..*" --ignore-url=".*//a\W.*" --ignore-url="http://(a|x|тест)" --ignore-url="https://en.wikipedia.org/.*" --ignore-url="https://permid.org/.*" --ignore-url="https://www.crunchbase.com/.*" --ignore-url="https://www.google.com/.*" --ignore-url="https://www.grid.ac/.*" --ignore-url="https://www.linkedin.com/.*" -o failures > output.txt || true + linkchecker linklist.txt --check-extern --config=.linkcheckerrc --ignore-url="https://.*\.fastly\.net/.*" --ignore-url="https://.*\.mapbox\..*" --ignore-url=".*//a\W.*" --ignore-url="http://(a|x|тест)" --ignore-url="https://en.wikipedia.org/.*" --ignore-url="https://permid.org/.*" --ignore-url="https://www.crunchbase.com/.*" --ignore-url="https://www.google.com/.*" --ignore-url="https://www.grid.ac/.*" --ignore-url="https://www.linkedin.com/.*" --ignore-url="https://docs.google.com/forms/d/e/.*" -o failures > output.txt || true cat output.txt echo "num_links=$(wc -l < output.txt | sed 's/^ *//g')" >> $GITHUB_OUTPUT echo "links<> $GITHUB_OUTPUT