Skip to content

Commit cc380ae

Browse files
authored
link-check.yaml: disables external link check (#5224)
1 parent 5b1eba8 commit cc380ae

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

.github/workflows/link-check.yaml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
name: external-link-check
1+
# name: external-link-check
22

3-
on: [pull_request]
3+
# on: [pull_request]
44

5-
jobs:
6-
base:
7-
runs-on: ubuntu-18.04
8-
steps:
9-
- name: Check out code
10-
uses: actions/checkout@v2
5+
# jobs:
6+
# base:
7+
# runs-on: ubuntu-18.04
8+
# steps:
9+
# - name: Check out code
10+
# uses: actions/checkout@v2
1111

12-
# NOTE:
13-
# - the check process can be very fast,
14-
# but if `-c` is too large then `Too Many Requests (HTTP error 429)` may be reported from `https://github.com/*`.
15-
# - we hardcode `--document-root` to `/github/workspace` in the container now.
16-
# - we use `http://172.*` as sample addresses in some docs, so we need to exclude them.
17-
- name: Check external links
18-
id: lc
19-
uses: peter-evans/link-checker@v1
20-
with:
21-
args: -c 32 -d /github/workspace -r -x "http://172.*|https://github.com/.*/pull/.*|https://github.com/.*/issues/.*|https://github.com/[^.\n]*$|http://127.0.0.1.*|http://localhost.*|http://.*:.*|https://static.googleusercontent.com/media/research.google.com/.*|https://www.crunchbase.com/organization/.*|http://www.brendangregg.com.*|https://blog.csdn.net.*|http://mysql-cocoa.sourceforge.net.*|https://tools.ietf.org.*|http://code.google.com.*|https://spark.apache.org.*|https://www.caasdata.com/|https://www.linkedin.com/company/.*|https://sea-group.org/.*|https://octave.sourceforge.io/database/index.html|https://www.teld.cn/|http://gnade.sourceforge.net/|https://en.wikipedia.org/wiki/WeBank_\(China|https://twitter.com/PingCAP|http://www.webgraphviz.com/|http://octave.sourceforge.net/database/index.html|http://www.ymt.com/|http://www.alhem.net/project/mysql/|https://www.reddit.com/r/TiDB|http://www.189.cn/sh/|https://dev.mysql.com/doc/refman/5.7/en/connector-odbc-info.html|https://asktug.com/_/tidb-performance-map/#/|https://commons.apache.org/proper/commons-dbcp/|https://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html|https://en.wikipedia.org/wiki/Plane_\(Unicode|.*.md" .
12+
# # NOTE:
13+
# # - the check process can be very fast,
14+
# # but if `-c` is too large then `Too Many Requests (HTTP error 429)` may be reported from `https://github.com/*`.
15+
# # - we hardcode `--document-root` to `/github/workspace` in the container now.
16+
# # - we use `http://172.*` as sample addresses in some docs, so we need to exclude them.
17+
# - name: Check external links
18+
# id: lc
19+
# uses: peter-evans/link-checker@v1
20+
# with:
21+
# args: -c 32 -d /github/workspace -r -x "http://172.*|https://github.com/.*/pull/.*|https://github.com/.*/issues/.*|https://github.com/[^.\n]*$|http://127.0.0.1.*|http://localhost.*|http://.*:.*|https://static.googleusercontent.com/media/research.google.com/.*|https://www.crunchbase.com/organization/.*|http://www.brendangregg.com.*|https://blog.csdn.net.*|http://mysql-cocoa.sourceforge.net.*|https://tools.ietf.org.*|http://code.google.com.*|https://spark.apache.org.*|https://www.caasdata.com/|https://www.linkedin.com/company/.*|https://sea-group.org/.*|https://octave.sourceforge.io/database/index.html|https://www.teld.cn/|http://gnade.sourceforge.net/|https://en.wikipedia.org/wiki/WeBank_\(China|https://twitter.com/PingCAP|http://www.webgraphviz.com/|http://octave.sourceforge.net/database/index.html|http://www.ymt.com/|http://www.alhem.net/project/mysql/|https://www.reddit.com/r/TiDB|http://www.189.cn/sh/|https://dev.mysql.com/doc/refman/5.7/en/connector-odbc-info.html|https://asktug.com/_/tidb-performance-map/#/|https://commons.apache.org/proper/commons-dbcp/|https://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html|https://en.wikipedia.org/wiki/Plane_\(Unicode|.*.md" .
2222

23-
- name: Fail if there were external link errors
24-
if: ${{ steps.lc.outputs.exit_code }}
25-
run: |
26-
echo "Please check the broken links reported in the previous step \"Check external links\"."
27-
exit ${{ steps.lc.outputs.exit_code }}
28-
# Debug via SSH if previous steps failed
29-
#- name: Set up tmate session
30-
# if: ${{ failure() }}
31-
# uses: mxschmitt/action-tmate@v2
23+
# - name: Fail if there were external link errors
24+
# if: ${{ steps.lc.outputs.exit_code }}
25+
# run: |
26+
# echo "Please check the broken links reported in the previous step \"Check external links\"."
27+
# exit ${{ steps.lc.outputs.exit_code }}
28+
# # Debug via SSH if previous steps failed
29+
# #- name: Set up tmate session
30+
# # if: ${{ failure() }}
31+
# # uses: mxschmitt/action-tmate@v2

0 commit comments

Comments
 (0)