mirror of
https://github.com/enocom/gopher-reading-list.git
synced 2026-05-15 14:15:49 -06:00
Show duplicates
This commit is contained in:
parent
6696b57f9f
commit
d6070af559
1 changed files with 4 additions and 1 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
|
@ -16,7 +16,10 @@ 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?://[^][ ]+" | sed 's/)//' | sort | uniq | wc -l) != 200 ]; then
|
||||
all_links=$(grep "\- \[" README.md | grep -Eo "https?://[^][ ]+" | sed 's/)//' | sort)
|
||||
if [ $(echo $all_links | uniq | wc -l) != 200 ]; then
|
||||
echo "ERROR: List is not exactly 200 entries"
|
||||
echo "DUPLICATES:"
|
||||
echo $all_links | uniq -d
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue