Skip to content

Commit

Permalink
Added a workflow to check for broken links.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliyf committed Sep 17, 2024
1 parent 4c23a7f commit a1c5b6b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci-lychee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI - Check Links

on:
pull_request:
types: [opened, synchronize, reopened]

permissions:
contents: read
pull-requests: write

jobs:
lychee:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/cache@v4
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-

- uses: lycheeverse/lychee-action@v1
with:
args: "--base docs/ --verbose --no-progress --cache --max-cache-age 1d"
fail: false

- name: Add output as PR comment
uses: embrace-io/actions-comment-pull-request@v2
with:
comment_tag: lychee
filePath: lychee/out.md

0 comments on commit a1c5b6b

Please sign in to comment.