diff --git a/.github/workflows/lychee.yml b/.github/workflows/lychee.yml new file mode 100644 index 000000000..187de53ca --- /dev/null +++ b/.github/workflows/lychee.yml @@ -0,0 +1,28 @@ +name: lychee + +on: + push: + branches: + - master + 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 + with: + title: Link Checker Report + content-filepath: ./lychee/out.md + labels: automated issue diff --git a/.lycheeignore b/.lycheeignore new file mode 100644 index 000000000..256272e99 --- /dev/null +++ b/.lycheeignore @@ -0,0 +1,2 @@ +https://talk.nervos.org/ +https://discord.com/invite/nervos