Links #129
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Links | |
on: | |
repository_dispatch: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * 1" | |
jobs: | |
linkChecker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Download Exclude Path | |
run: | | |
curl https://raw.githubusercontent.com/pingcap/docs/master/.lycheeignore --output .lycheeignore | |
- name: Check Links | |
uses: lycheeverse/[email protected] | |
with: | |
# For parameter description, see https://github.com/lycheeverse/lychee#commandline-parameters | |
# Accept 429 for now due to github rate limit. | |
# See https://github.com/lycheeverse/lychee/issues/634 | |
args: -E --exclude-mail -i -n -t 45 -- **/*.md *.md | |
output: out.md | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Create Issue From File | |
uses: peter-evans/create-issue-from-file@v4 | |
with: | |
title: Broken Link Detected | |
content-filepath: out.md | |
# - name: Fail if there were link errors | |
# run: exit ${{ steps.lychee.outputs.exit_code }} |