Skip to content

Commit

Permalink
ci: Add link checking to CI (#6168)
Browse files Browse the repository at this point in the history
Rather than integrate the docs tool, this uses
https://github.com/lycheeverse/lychee-action?tab=readme-ov-file.

It will file a ticket if there are broken links. If that's not the best
way, it can be made to notify Slack instead.
  • Loading branch information
jjbrosnan authored Oct 25, 2024
1 parent e33e9d7 commit b2eff8c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Links

on:
repository_dispatch:
workflow_dispatch:
schedule:
- cron: "00 18 * * *"

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

- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v2

- name: Create Issue From File
if: env.lychee_exit_code != 0
uses: peter-evans/create-issue-from-file@v5
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: report, automated issue

0 comments on commit b2eff8c

Please sign in to comment.