Skip to content

Commit

Permalink
apply fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nikmel2803 committed Jul 16, 2024
1 parent 9e8936e commit 6973fce
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/check-links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ jobs:
fi
{
echo 'report_list<<EOF'
jq '[.links[] | select(.state == "BROKEN") | "• `\(.url)` (status: `\(.status)`) on the page \(.parent)"]' links-report.json
echo 'report_message<<EOF'
echo 'Broken links found in the docs 😱:'
jq '.links[] | select(.state == "BROKEN") | "• `\(.url)` (status: `\(.status)`) on the page \(.parent)"' links-report.json
echo EOF
} >> "$GITHUB_OUTPUT"
Expand All @@ -40,9 +42,6 @@ jobs:
if: steps.prepare-report.outputs.send_report == 'true'
with:
channel-id: "#alerts-test"
slack-message: |
Broken links found in the docs 😱:
${{ join(fromJson(steps.prepare-report.outputs.report_list), ' %0A') }}
slack-message: ${{ steps.prepare-report.outputs.report_message }}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 comments on commit 6973fce

Please sign in to comment.