-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Raid Ateir
committed
Oct 27, 2024
1 parent
9571efa
commit d179768
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |