Files
m3y54m_Embedded-Engineering…/.github/workflows/link-check.yml
T
dependabot[bot] c1aa63c1aa Bump actions/checkout from 5 to 7
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-09 15:15:12 +00:00

45 lines
1.1 KiB
YAML

name: Link check
on:
schedule:
- cron: "0 6 * * 1"
pull_request:
paths:
- "**/*.md"
- ".github/lychee.toml"
workflow_dispatch:
permissions:
contents: read
issues: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lychee:
name: Check links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Check links
id: lychee
uses: lycheeverse/lychee-action@v2
with:
args: --config .github/lychee.toml --no-progress "**/*.md"
output: lychee/out.md
# Pull requests report broken links without blocking; scheduled runs fail and open an issue.
fail: ${{ github.event_name != 'pull_request' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Report broken links
if: github.event_name != 'pull_request' && steps.lychee.outputs.exit_code != 0
uses: peter-evans/create-issue-from-file@v5
with:
title: Link check report
content-filepath: lychee/out.md
labels: broken-links