Skip to content

Instantly share code, notes, and snippets.

@doitian
Created April 21, 2022 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doitian/4238199d1632398a4b796e935eec7251 to your computer and use it in GitHub Desktop.
Save doitian/4238199d1632398a4b796e935eec7251 to your computer and use it in GitHub Desktop.
name: lychee
on:
push:
branches:
- master
schedule:
- cron: '0 0 1 * *'
jobs:
links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache .lycheecache
id: cache-lychee
uses: actions/cache@v3
with:
path: .lycheecache
key: lychee
- name: Link Checker
uses: lycheeverse/lychee-action@master
env:
GITHUB_TOKEN: ${{secrets.LYCHEE_PAT}}
with:
args: '--verbose --exclude-private --exclude-loopback --cache -a "403,429" --max-concurrency 64 --max-retries 4 --no-progress "**/*.md"'
- name: Create Issue From File
uses: peter-evans/create-issue-from-file@v2
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: automated issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment