Skip to content

Commit

Permalink
(feat): add dead-links jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Raid Ateir committed Oct 27, 2024
1 parent 9571efa commit d179768
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/dead-links.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Check Dead Links in Markdown Files

on: pull_request

jobs:
check-dead-links:
name: Check Dead Links in Markdown Files
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Lychee
run: |
sudo apt-get update
sudo apt-get install -y lychee
- name: Find and check markdown files
run: |
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
find . -type f -name "*.md" ! -path "*/node_modules/*" ! -path "*/openzeppelin*" ! -path "*/murky/*" -exec lychee --github-token $GITHUB_TOKEN {} +
- name: Upload Dead Links Report
uses: actions/upload-artifact@v4
with:
name: dead-links-report
path: dead_links_report.txt

0 comments on commit d179768

Please sign in to comment.