Skip to content

Commit

Permalink
ci: report broken links as an issue
Browse files Browse the repository at this point in the history
Signed-off-by: Bird <aflybird0@gmail.com>
  • Loading branch information
aFlyBird0 committed Apr 23, 2023
1 parent a099568 commit e16a634
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/link-schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
- name: Link Checker
uses: lycheeverse/lychee-action@v1.5.0
with:
fail: true
# For parameter description, see https://github.com/lycheeverse/lychee#commandline-parameters
# -E, --exclude-all-private Exclude all private IPs from checking.
# -i, --insecure Proceed for server connections considered insecure (invalid TLS)
Expand All @@ -40,6 +39,13 @@ jobs:

# docs/.vitepress/dist the site directory to check
# ./*.md all markdown files in the root directory
args: -E -i -n -t 45 --max-concurrency 64 -a 429,401 -- 'docs/.vitepress/dist' '*.md'
args: -E -i -n -t 45 --max-concurrency 64 -a 429,401,403 -- 'docs/.vitepress/dist' '*.md'
output: out.md
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Create Issue From File
uses: peter-evans/create-issue-from-file@v3
with:
title: Broken Link Detected
content-filepath: out.md
assignees: nightwhite

0 comments on commit e16a634

Please sign in to comment.