Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude google forms links from link checking #217

Merged
merged 1 commit into from
Feb 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/link-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" "# <meta charset=\"UTF-8\">" "$(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<<EOFdelimiter" >> $GITHUB_OUTPUT
Expand Down
Loading