Skip to content

Commit

Permalink
ci: remove the step for checking GitHub links in link.yaml (#8942)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oreoxmt authored Jun 14, 2022
1 parent d51f197 commit 18b0014
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 21 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/link.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,15 @@ jobs:
run: |
curl https://raw.githubusercontent.com/pingcap/docs/master/.lycheeignore --output .lycheeignore
- name: Check Links Exclude GitHub
- name: Check Links
uses: lycheeverse/[email protected]
with:
# For parameter description, see https://github.com/lycheeverse/lychee#commandline-parameters
args: -E --exclude-mail -v -i -n -t 45 --exclude github\.com -- **/*.md
output: exclude-out.md
output: out.md
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Check Links Include GitHub
uses: lycheeverse/[email protected]
with:
# For parameter description, see https://github.com/lycheeverse/lychee#commandline-parameters
args: -E --exclude-mail -v -i -n -t 45 --max-concurrency 1 --exclude .* --include github\.com -- **/*.md
output: include-out.md
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Merge Output
run: |
cat exclude-out.md include-out.md > out.md
- name: Create Issue From File
uses: peter-evans/create-issue-from-file@v3
with:
Expand Down
14 changes: 8 additions & 6 deletions .lycheeignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
http://grafana_ip:3000/?
http://ip:2379/?
https://github.com/.*/pull/?
https://github.com/.*/issues/?
file://.*?http:/\$%7BPD_IP%7D:\$%7BPD_PORT%7D/dashboard/?
file:///home/runner/work/docs/docs/develop/?
http://grafana_ip:3000.*
http://ip:2379.*
https://github.com/.*/pull/.*
https://github.com/.*/issues/.*
file://.*?http:/\$%7BPD_IP%7D:\$%7BPD_PORT%7D/dashboard.*
file:///home/runner/work/docs/docs/develop/.*
file:///home/runner/work/docs-cn/docs-cn/develop/.*
https://mvnrepository.com/artifact/mysql/mysql-connector-java/8.0.28

0 comments on commit 18b0014

Please sign in to comment.