From 913cb8c3de7a2e6ff4379b08f6c0bf0533b6520d Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Fri, 11 Oct 2024 17:03:48 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9B=94=EF=B8=8F=20fail=20on=20redirected=20t?= =?UTF-8?q?o=20show=20that=20this=20should=20work=20for=20broken?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Yes, "broken" is the right value: https://github.com/sphinx-doc/sphinx/blob/2f1d775dfda9e4f81dfff6cfbe9edf7731e32a97/sphinx/builders/linkcheck.py#L134 --- .github/workflows/docs-ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs-ci.yaml b/.github/workflows/docs-ci.yaml index 71e0db0..8718af9 100644 --- a/.github/workflows/docs-ci.yaml +++ b/.github/workflows/docs-ci.yaml @@ -82,7 +82,7 @@ jobs: - name: Check for broken links run: | - broken_links=$(jq 'select(.status == "broken")' "$BUILDDIR/linkcheck/output.json") + broken_links=$(jq 'select(.status == "redirected")' "$BUILDDIR/linkcheck/output.json") if [ -n "$broken_links" ]; then echo "Broken links found:" echo "$broken_links"