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 d2bf05d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/lychee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: lychee

on:
push:
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' ||
( github.event_name == 'push' && github.ref == 'refs/heads/master' )
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 d2bf05d

Please sign in to comment.