Skip to content

Check broken links

Check broken links #37

name: Check broken links
on:
workflow_dispatch:
schedule:
- cron: "00 18 */7 * *"
jobs:
generate_md_file:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 'latest'
- name: Generate md file and ignore list
run: node .github/generate.js
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v1
with:
args: --no-progress '.github/output.md' --exclude-mail
- name: Create Issue From File
if: env.lychee_exit_code != 0
uses: peter-evans/create-issue-from-file@v4
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: report, automated issue