|
1 |
| -name: external-link-check |
| 1 | +# name: external-link-check |
2 | 2 |
|
3 |
| -on: [pull_request] |
| 3 | +# on: [pull_request] |
4 | 4 |
|
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 |
11 | 11 |
|
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" . |
22 | 22 |
|
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