Skip to content

Commit

Permalink
tune
Browse files Browse the repository at this point in the history
  • Loading branch information
nikmel2803 committed Jul 16, 2024
1 parent 05aa569 commit a6bce8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Prepare report
id: prepare-report
run: |
LENGTH=$(jq '[.links[] | select(.state == "BROKEN")] | length' links-report.json)
LENGTH=$(jq '[.links[] | select(.state == "BROKEN" and .status!=403 and .status!=429 and .status!=0)] | length' links-report.json)
if [ "$LENGTH" -gt 0 ]; then
echo "send_report=true" >> $GITHUB_OUTPUT
Expand All @@ -33,7 +33,7 @@ jobs:
echo 'report_message<<EOF'
echo 'Broken links found in the docs 😱:'
jq -r '.links[] | select(.state == "BROKEN") | "• `\(.url)` (status: `\(.status)`) on the page \(.parent)"' links-report.json
jq -r '.links[] | select(.state == "BROKEN" and .status!=403 and .status!=429 and .status!=0) | "• `\(.url)` (status: `\(.status)`) on the page \(.parent)"' links-report.json
echo EOF
} >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit a6bce8c

Please sign in to comment.