Skip to content

chore: refresh content and add lint + link-check workflows #1

chore: refresh content and add lint + link-check workflows

chore: refresh content and add lint + link-check workflows #1

Workflow file for this run

name: Link check
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Mondays at 14:00 UTC.
- cron: "0 14 * * 1"
workflow_dispatch:
permissions:
contents: read
issues: write
jobs:
lychee:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run lychee
id: lychee
uses: lycheeverse/lychee-action@v2
with:
args: >-
--verbose
--no-progress
--max-concurrency 4
--retry-wait-time 5
--accept 200,206,403,429
--exclude-mail
'./**/*.md'
fail: ${{ github.event_name == 'pull_request' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Open or update an issue on scheduled failure
if: failure() && github.event_name == 'schedule'
uses: peter-evans/create-issue-from-file@v5
with:
title: Broken links detected by scheduled link check
content-filepath: ./lychee/out.md
labels: broken-links, automated