Skip to content

Link checker GitHub Action #1

Link checker GitHub Action

Link checker GitHub Action #1

name: Check for broken links
on:
workflow_dispatch: # Triggered manually from the Actions tab of the GitHub repository.
pull_request:
branches:
- main
jobs:
link-checker:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Check links
id: check-links
uses: lycheeverse/lychee-action@v2
with:
fail: false
output: ./check-links-output/report.md
args:
- "--exclude-path ./docs/data/archive"

Check failure on line 27 in .github/workflows/check-broken-links.yaml

View workflow run for this annotation

GitHub Actions / Check for broken links

Invalid workflow file

The workflow is not valid. .github/workflows/check-broken-links.yaml (Line: 27, Col: 13): A sequence was not expected
- "--exclude-path ./docs/data/version-history"
- "--exclude-path ./docs/tech-alerts"
- "./**/*.md ./**/*.rst ./**/*.yaml ./**/*.yml"
- name: Create issue
if: steps.check-links.outputs.exit_code != 0
uses: peter-evans/create-issue-from-file@v5
with:
title: Fix broken links
content-filepath: ./check-links-output/report.md
labels: link-checker