Link checker #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Link checker | |
on: | |
workflow_dispatch: | |
pull_request: null | |
schedule: | |
- cron: 0 0 * * 0 | |
jobs: | |
link-checker: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Restore lychee cache | |
uses: actions/cache@v3 | |
with: | |
path: .lycheecache | |
key: cache-lychee-${{ github.sha }} | |
restore-keys: cache-lychee- | |
- name: Run lychee | |
uses: lycheeverse/[email protected] | |
id: lychee | |
with: | |
args: "--base . --cache --max-cache-age 1d ." | |
- name: Create issue | |
if: env.lychee_exit_code != 0 | |
uses: peter-evans/create-issue-from-file@v5 | |
with: | |
title: Link checker report | |
labels: 'bug' | |
content-filepath: ./lychee/out.md |