We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f090d83 commit c7992acCopy full SHA for c7992ac
.github/workflows/link-checker.yml
@@ -0,0 +1,24 @@
1
+name: Link Checker
2
+
3
+on:
4
+ pull_request:
5
+ schedule:
6
+ - cron: '0 2 * * *'
7
8
+jobs:
9
+ check-links:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
14
+ - uses: lycheeverse/lychee-action@v2
15
+ with:
16
+ args: --no-progress --exclude 'http://localhost' '**/*.ts' '**/*.tsx' '**/*.mdx'
17
+ fail: true
18
19
+ - name: Notify Slack on failure
20
+ if: failure() && github.event_name == 'schedule'
21
+ run: |
22
+ curl -X POST ${{ secrets.SLACK_WEBHOOK_URL }} \
23
+ -H 'Content-type: application/json' \
24
+ -d '{"text": "🔴 Dead links detected in nightly link check. <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View run>"}'
0 commit comments