Skip to content

Commit

Permalink
add lychee to check external links
Browse files Browse the repository at this point in the history
Refs #327
  • Loading branch information
doitian committed Apr 14, 2022
1 parent ca26788 commit 9d18332
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/lychee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: lychee

on:
push:
pull_request:
schedule:
- cron: '0 0 1 * *'

jobs:
links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Link Checker
uses: lycheeverse/lychee-action@master
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
args: '--verbose --max-retries 4 --no-progress **/*.md'

- name: Create Issue From File
uses: peter-evans/create-issue-from-file@v2
if: github.event_name == 'schedule'
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: automated issue
2 changes: 2 additions & 0 deletions .lycheeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
https://talk.nervos.org/
https://discord.com/invite/nervos

0 comments on commit 9d18332

Please sign in to comment.