Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/link-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Link Checker

on:
repository_dispatch:
push:
branches:
- develop
workflow_dispatch:
schedule:
- cron: "00 18 * * 0"

jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v2
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
args: --verbose --no-progress --max-redirects 8 './**/*.md'
format: markdown
fail: false
output: lychee/results.md

- name: Create Issue From File
if: steps.lychee.outputs.exit_code != 0
uses: peter-evans/create-issue-from-file@v5
with:
title: Link Checker Report
content-filepath: ./lychee/results.md
labels: report, automated issue
4 changes: 4 additions & 0 deletions lycheeignore.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
zhuanlan.zhihu.com/*
https://demo.doctrp.top/
http://127.0.0.1:8001/
http://localhost:9003