Fix CI check to ensure 200 links

This commit is contained in:
Eno Compton IV 2022-04-09 12:28:35 -06:00
parent 348ff82bb6
commit 6696b57f9f

View file

@ -16,7 +16,7 @@ jobs:
run: npx markdown-link-check --config=.github/workflows/config.json README.md
- name: "Check for exactly 200 links"
run: |
if [ $(grep "\- \[" README.md | grep -Eo "https?://[^][ ]+" | uniq | wc -l) != 200 ]; then
if [ $(grep "\- \[" README.md | grep -Eo "https?://[^][ ]+" | sed 's/)//' | sort | uniq | wc -l) != 200 ]; then
echo "ERROR: List is not exactly 200 entries"
exit 1
fi