Skip to content

Commit

Permalink
[fix-#689] 添加dead link 的action
Browse files Browse the repository at this point in the history
  • Loading branch information
fuchanghai committed Apr 14, 2024
1 parent a090473 commit 4295b5e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/deadlink.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: dead link check

on:
pull_request:
schedule:
- cron: '0 18 * * *' # TimeZone: UTC 0

jobs:
dead-link:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- run: sudo npm install -g [email protected]
- run: sudo apt install plocate -y
# NOTE: Change command from `find . -name "*.md"` to `find . -not -path "*/node_modules/*" -not -path "*/.tox/*" -name "*.md"`
# if you want to run check locally
- run: |
for file in $(locate "$PWD*/*.md" | grep -v ./deploy/terraform/aws/README.md); do
markdown-link-check -c .dlc.json -q "$file" &
done
wait

0 comments on commit 4295b5e

Please sign in to comment.