Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.github: use a new external link checker #7845

Merged
merged 7 commits into from
Dec 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
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
19 changes: 19 additions & 0 deletions .github/exclude-links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
http://example.com:8033/dashboard/
https://charts.pingcap.org
https://download.pingcap.org
http:/192.168.0.16:2379
http:/192.168.0.15:2379
http:/192.168.0.14:2379
http://spark-master-hostname:8080/
http:/pd_ip:pd_port
http:/ip:status_port/config
http://grafana_ip:3000/
http://ip:2379/dashboard/
http://ip:2379/pd/api/v1/members
http://\$ip:10080/
http://__tidb_ip__:10080/metrics
http://__grafana_ip__:3000
http://9.9.9.9:2379/
http:/DASHBOARD_IP:PORT/dashboard
http:/\$%7Btidb-server-ip%7D:\$%7Btidb-server-status-port%7D/
https://kms.us-west-2.amazonaws.com
31 changes: 0 additions & 31 deletions .github/workflows/link-check.yaml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/link.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Links

on:
repository_dispatch:
workflow_dispatch:
schedule:
- cron: "0 13 * * 2"

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

- name: Link Checker
uses: lycheeverse/lychee-action@v1.1.1
with:
# For parameter description, see https://github.com/lycheeverse/lychee#commandline-parameters
args: -E --exclude-mail -v -i -n -a 429 -t 45 --exclude-file ./.github/exclude-links.txt -- **/*.md *.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: ./lychee/out.md
assignees: ran-huang

# - name: Fail if there were link errors
# run: exit ${{ steps.lychee.outputs.exit_code }}