Skip to content

Commit

Permalink
fix: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
swarna1101 committed Dec 18, 2024
1 parent 839cd5d commit a4d7795
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/lint-check-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,19 @@ jobs:
- name: Check types
run: npm run typecheck

# Install Lychee for link checking
- name: Install Lychee (Link Checker)
run: |
wget -q https://github.com/lycheeverse/lychee/releases/latest/download/lychee-linux-x86_64.tar.gz
tar -xzf lychee-linux-x86_64.tar.gz
sudo mv lychee /usr/local/bin/
# Run Link Checker
- name: Run Link Checker
run: |
lychee \
--config .github/config/lychee.toml \
--accept=200,403 \
--no-progress \
# Run Link Checker using Lychee Action
- name: Check for Broken Links
uses: lycheeverse/[email protected]
with:
# Specify files to scan for links
args: >
--accept 200,403
--no-progress
'**/*.md' '**/*.mdx' '**/*.html'
# Path to Lychee configuration file
config-file: .github/config/lychee.toml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Report Failure on Broken Links
- name: Report Failure on Broken Links
Expand Down

0 comments on commit a4d7795

Please sign in to comment.