Auto check missing / forbidden external papers and raise issue (#624)

* Create lychee.yml
* Link checker with auto create issue
* 📅 run once a month

Request from https://github.com/papers-we-love/papers-we-love/pull/624#issuecomment-939320960
This commit is contained in:
Robbi Nespu 2021-10-11 19:15:05 +08:00 committed by GitHub
parent 7a241da5e8
commit 20b552c908
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

28
.github/workflows/lychee.yml vendored Normal file
View File

@ -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@v2.3.4
- name: Link Checker
uses: lycheeverse/lychee-action@master
#env:
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
args: '--verbose --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: report, automated issue