Skip to content
Merged
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
b886e14
added workflow
aidankmcalister Oct 15, 2025
a521a4b
lychee checker updated
aidankmcalister Oct 15, 2025
d1c5be6
update link again
aidankmcalister Oct 15, 2025
c73c151
lychee updated
aidankmcalister Oct 21, 2025
641f1ea
revert back
aidankmcalister Oct 21, 2025
690121c
edit fail conditions
aidankmcalister Oct 21, 2025
5702af9
check 2
aidankmcalister Oct 21, 2025
d54b4b3
lychee changed
aidankmcalister Oct 21, 2025
3f3f88d
workign dir
aidankmcalister Oct 21, 2025
44e8a7a
args updated
aidankmcalister Oct 21, 2025
1907e61
added comment
aidankmcalister Oct 21, 2025
59f21d8
Merge branch 'main' into DC-5259-lychee-link-checker
aidankmcalister Oct 21, 2025
8a356fa
lychee tol added
aidankmcalister Oct 21, 2025
1d4809b
edited toml
aidankmcalister Oct 21, 2025
13089c3
typo fixed
aidankmcalister Oct 21, 2025
b42d699
typos
aidankmcalister Oct 21, 2025
fc4ed54
args renoved
aidankmcalister Oct 21, 2025
feb4d8b
removed include
aidankmcalister Oct 21, 2025
fb93839
added extensions
aidankmcalister Oct 21, 2025
db95bf9
minor updates
aidankmcalister Oct 21, 2025
97e2dee
update
aidankmcalister Oct 21, 2025
cacf989
update
aidankmcalister Oct 21, 2025
0de3739
update
aidankmcalister Oct 21, 2025
a29ad76
arg changes
aidankmcalister Oct 21, 2025
de06e2d
changed comment system
aidankmcalister Oct 21, 2025
24566d0
cache added
aidankmcalister Oct 21, 2025
e2e0168
test
aidankmcalister Oct 21, 2025
426be0c
output fixed
aidankmcalister Oct 21, 2025
f34d0ed
broken link to test
aidankmcalister Oct 21, 2025
d5586d7
fail on broken links
aidankmcalister Oct 21, 2025
23b4f8f
sytyle changes
aidankmcalister Oct 21, 2025
5ac4494
file path change
aidankmcalister Oct 21, 2025
9278ed2
conflict
aidankmcalister Oct 21, 2025
702a6de
exclusions
aidankmcalister Oct 21, 2025
724550b
timeout and cache changes
aidankmcalister Oct 21, 2025
f348f2d
quiet flag
aidankmcalister Oct 21, 2025
1a27ecd
name change and old toml file removed
aidankmcalister Oct 21, 2025
70041f8
tanstack fixed
aidankmcalister Oct 21, 2025
0bcc831
cache timeout changed to 6 hours
aidankmcalister Oct 21, 2025
9ff6e13
tedt reponse
aidankmcalister Oct 21, 2025
ce7d186
changes
aidankmcalister Oct 21, 2025
b9d87fe
name change
aidankmcalister Oct 21, 2025
459ce7c
broken link fixewd
aidankmcalister Oct 21, 2025
c6d1045
extra `EOF` removed
aidankmcalister Oct 21, 2025
db4e9e4
low cache number to check
aidankmcalister Oct 21, 2025
e860249
update to only comment on non-forked prs
aidankmcalister Oct 21, 2025
5125244
cache put back to 6 hours
aidankmcalister Oct 21, 2025
ae63b7b
cache test 1
aidankmcalister Oct 21, 2025
5e9d31e
cache check removed
aidankmcalister Oct 21, 2025
88b8978
cache changed to 5 minutes for test
aidankmcalister Oct 21, 2025
252e1e9
cache 3 hours
aidankmcalister Oct 21, 2025
4cf78dc
concurrency checks added
aidankmcalister Oct 21, 2025
19887ad
test: trigger lychee workflow
aidankmcalister Oct 21, 2025
44e3675
minor text change
aidankmcalister Oct 22, 2025
6b117ef
Merge branch 'main' into DC-5259-lychee-link-checker
aidankmcalister Oct 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions .github/workflows/lychee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: 🍈 Lychee

on: [pull_request]

concurrency:
group: lychee-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
check-links:
name: Check links
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4

- name: 🍈 Lychee Link Checker
id: lychee
uses: lycheeverse/lychee-action@v2
with:
fail: false
output: ../lychee/out.md
args: >
--cache
--max-cache-age 3h
--verbose
--no-progress
--accept 200,201,204,304,403,429
--timeout 20
--max-retries 5
--retry-wait-time 5
--max-concurrency 16
--exclude 'http://localhost.*'
--exclude 'https://localhost.*'
--exclude 'https://dev.mysql.com/.*'
--exclude 'https://www.mysql.com/.*'
--exclude 'https://www.gnu.org/.*'
--exclude 'https://www.cockroachlabs.com/.*'
--exclude '^/.*'
'./**/*.md' './**/*.mdx'
workingDirectory: "content"
env:
GITHUB_TOKEN: ${{ secrets.github_token }}

- name: 📝 Clean up Lychee Report
if: ${{ always() && github.event.pull_request.head.repo.fork == false }}
run: |
if [ -f "lychee/out.md" ]; then
# Read the original output
ORIGINAL=$(cat lychee/out.md)

# Create formatted output
cat > lychee/formatted.md << 'EOF'
## 🍈 Lychee Link Check Report

> **Note:** Links are cached for 3 hours to avoid unnecessary requests, and speed up consecutive runs.

### 📊 Results Overview

EOF

# Append the original content with title replacement
echo "$ORIGINAL" | sed 's/^# Summary$//' | sed 's/^## Summary$//' >> lychee/formatted.md
fi

- name: 📝 Comment Broken Links
if: ${{ always() && github.event.pull_request.head.repo.fork == false }}
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
body-path: lychee/formatted.md

- name: 🚫 Fail if broken links found
if: ${{ steps.lychee.outputs.exit_code != 0 }}
run: exit ${{ steps.lychee.outputs.exit_code }}
Loading