Skip to content

Commit

Permalink
Add custom config file
Browse files Browse the repository at this point in the history
  • Loading branch information
niharikasingh authored Sep 21, 2023
1 parent e65fc58 commit ba07023
Showing 1 changed file with 1 addition and 1 deletion.
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 github-metrics
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 --ignore-url="https://.*\.fastly\.net/.*" --ignore-url="https://.*\.mapbox\..*" --ignore-url=".*//a\W?.*" --ignore-url="http://(x|тест)" --ignore-url="https://arxiv.org/.*" --ignore-url="https://doi.org/.*" -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://arxiv.org/.*" --ignore-url="https://doi.org/.*" -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

0 comments on commit ba07023

Please sign in to comment.