Skip to content

feat(actions): add lychee #1

feat(actions): add lychee

feat(actions): add lychee #1

Workflow file for this run

name: Links
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
linkChecker:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Restore lychee cache
uses: actions/cache@v4
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- uses: actions/checkout@v4
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v2
with:
args: |
--cache
--verbose
--accept '100..=103,200..=299,400,403'
--no-progress
README.md
fail: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

Check failure on line 36 in .github/workflows/links.yml

View workflow run for this annotation

GitHub Actions / Links

Invalid workflow file

The workflow is not valid. .github/workflows/links.yml (Line: 36, Col: 13): A mapping was not expected
- name: Create Issue From File
if: steps.lychee.outputs.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