Skip to content

Commit

Permalink
filter broken links only
Browse files Browse the repository at this point in the history
  • Loading branch information
nikmel2803 committed Jul 16, 2024
1 parent 0901562 commit 44d95e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check-links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Prepare report
id: prepare-report
run: |
LENGTH=$(jq '.links | length' links-report.json)
LENGTH=$(jq '[.links[] | select(.state == "BROKEN")] | length' links-report.json)
if [ "$LENGTH" -gt 0 ]; then
echo "send_report=true" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 44d95e5

Please sign in to comment.