Skip to content

chore(deps): bump actions/cache from 4 to 5 in the actions group #279

chore(deps): bump actions/cache from 4 to 5 in the actions group

chore(deps): bump actions/cache from 4 to 5 in the actions group #279

name: Check External Links
on:
pull_request:
branches:
- main
paths:
- "docs/**"
- ".github/workflows/check-external-links.yml"
jobs:
check-external-links:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v6
- name: Restore lychee cache
uses: actions/cache@v5
with:
path: .lycheecache
key: cache-lychee-${{ hashFiles('lychee.toml') }}
restore-keys: cache-lychee-
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v2
continue-on-error: true
with:
lycheeVersion: "latest"
args: |
--config lychee.toml
docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Comment on PR if broken links found
if: ${{ always() && steps.lychee.outputs.exit_code != 0 }}
uses: thollander/actions-comment-pull-request@v3
with:
message: |
### 🚨 Broken links detected
<details>
<summary>Click to expand</summary>
```markdown
${{ steps.lychee.outputs.report }}
```
</details>
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Fail if broken links found
if: ${{ steps.lychee.outputs.exit_code != 0 }}
run: exit 1