From cc380ae906304e8f6266e5264306a6e21f5513a3 Mon Sep 17 00:00:00 2001 From: Coco Yee <40977455+yikeke@users.noreply.github.com> Date: Tue, 6 Apr 2021 20:04:32 +0800 Subject: [PATCH] link-check.yaml: disables external link check (#5224) --- .github/workflows/link-check.yaml | 54 +++++++++++++++---------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/link-check.yaml b/.github/workflows/link-check.yaml index b18329f4c8f98..5e4a64bbaca34 100644 --- a/.github/workflows/link-check.yaml +++ b/.github/workflows/link-check.yaml @@ -1,31 +1,31 @@ -name: external-link-check +# name: external-link-check -on: [pull_request] +# on: [pull_request] -jobs: - base: - runs-on: ubuntu-18.04 - steps: - - name: Check out code - uses: actions/checkout@v2 +# jobs: +# base: +# runs-on: ubuntu-18.04 +# steps: +# - name: Check out code +# uses: actions/checkout@v2 - # NOTE: - # - the check process can be very fast, - # but if `-c` is too large then `Too Many Requests (HTTP error 429)` may be reported from `https://github.com/*`. - # - we hardcode `--document-root` to `/github/workspace` in the container now. - # - we use `http://172.*` as sample addresses in some docs, so we need to exclude them. - - name: Check external links - id: lc - uses: peter-evans/link-checker@v1 - with: - 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" . +# # NOTE: +# # - the check process can be very fast, +# # but if `-c` is too large then `Too Many Requests (HTTP error 429)` may be reported from `https://github.com/*`. +# # - we hardcode `--document-root` to `/github/workspace` in the container now. +# # - we use `http://172.*` as sample addresses in some docs, so we need to exclude them. +# - name: Check external links +# id: lc +# uses: peter-evans/link-checker@v1 +# with: +# 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" . - - name: Fail if there were external link errors - if: ${{ steps.lc.outputs.exit_code }} - run: | - echo "Please check the broken links reported in the previous step \"Check external links\"." - exit ${{ steps.lc.outputs.exit_code }} - # Debug via SSH if previous steps failed - #- name: Set up tmate session - # if: ${{ failure() }} - # uses: mxschmitt/action-tmate@v2 +# - name: Fail if there were external link errors +# if: ${{ steps.lc.outputs.exit_code }} +# run: | +# echo "Please check the broken links reported in the previous step \"Check external links\"." +# exit ${{ steps.lc.outputs.exit_code }} +# # Debug via SSH if previous steps failed +# #- name: Set up tmate session +# # if: ${{ failure() }} +# # uses: mxschmitt/action-tmate@v2