Skip to content

chore(deps): bump astral-sh/setup-uv from 982fbca0f85af68215088e99d48a1c20ea2126a5 to 1c21f62d9839020b9729e9672bc3109510b34397 in /.github/workflows #22

chore(deps): bump astral-sh/setup-uv from 982fbca0f85af68215088e99d48a1c20ea2126a5 to 1c21f62d9839020b9729e9672bc3109510b34397 in /.github/workflows

chore(deps): bump astral-sh/setup-uv from 982fbca0f85af68215088e99d48a1c20ea2126a5 to 1c21f62d9839020b9729e9672bc3109510b34397 in /.github/workflows #22

Workflow file for this run

name: Check Links In Pull Requests
on:
pull_request:
branches:
- main
# Optionally limit the check to certain file types
# paths:
# - '**/*.md'
# - '**/*.html'
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check-links:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@cbb722410c2e876e24abbe8de2cc27693e501dcb
with:
persist-credentials: false
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Check out base branch
env:
BASE_REF: ${{github.event.pull_request.base.ref}}
run: git checkout "$BASE_REF"
- name: Dump all links from ${{github.event.pull_request.base.ref}}
uses: lycheeverse/lychee-action@f796c8b7d468feb9b8c0a46da3fac0af6874d374
with:
args: |
--dump
--include-fragments
.
output: ./existing-links.txt
continue-on-error: true # Don't fail if base branch check has issues
- name: Stash untracked files
run: git stash push --include-untracked
- name: Check out feature branch
env:
HEAD_REF: ${{ github.head_ref }}
run: git checkout "$HEAD_REF"
- name: Apply stashed changes
run: git stash pop || true
- name: Update ignore file
run: |
if [ -f "existing-links.txt" ]; then
cat existing-links.txt >> .lycheeignore
fi
- name: Check links
uses: lycheeverse/lychee-action@f796c8b7d468feb9b8c0a46da3fac0af6874d374
with:
args: |
--no-progress
--include-fragments
.
- name: Provide helpful failure message
if: failure()
run: |
echo "::error::Link check failed! Please review the broken links reported above."
echo ""
echo "If certain links are valid but fail due to:"
echo "- CAPTCHA challenges"
echo "- IP blocking"
echo "- Authentication requirements"
echo "- Rate limiting"
echo ""
echo "Consider adding them to .lycheeignore to bypass future checks."
echo "Format: Add one URL pattern per line"
exit 1