]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Run linkchecker only on Wednesdays
authorMichal Nowak <mnowak@isc.org>
Mon, 5 May 2025 10:57:47 +0000 (12:57 +0200)
committerMichal Nowak <mnowak@isc.org>
Mon, 5 May 2025 14:53:54 +0000 (14:53 +0000)
Some domains tested by linkchecker may think that we connect to them too
often and will refuse connection or reply with and error code, which
makes this job fail. Let's check links only on Wednesdays.

(cherry picked from commit f745a9212a3cb5d938a418a294955886d90e268c)

.gitlab-ci.yml

index 12bdfbd3eac2839ad3d01e0ca06677d127dc6874..98d20ce63706a58db4519abf74ea531268846577 100644 (file)
@@ -730,6 +730,10 @@ linkcheck:
   <<: *base_image
   stage: docs
   script:
+    # Some domains tested by linkchecker may think that we connect to them too
+    # often and will refuse connection or reply with and error code, which
+    # makes this job fail. Let's check links only on Wednesdays.
+    - if [ "$(date +%w)" != "3" ]; then exit 0; fi
     - pushd doc/arm/ > /dev/null && sphinx-build -b linkcheck . linkcheck_output/
   artifacts:
     paths: