From 6e104b2cf71a5b189e6acd0ba1a56cda413d37a7 Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 23 Mar 2026 13:46:50 +0100 Subject: [PATCH] build: Log HTTP response codes Added HTTP response code logging in the check function. --- .github/workflows/links.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 1ddedbb..c4d3062 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -31,8 +31,10 @@ jobs: check() { local url="$1" http http=$(curl -sSL -o /dev/null -w "%{http_code}" --max-time 10 -I -- "$url" 2>&1) || http="000" + printf '%s\n' "HTTP: $http" [[ "$http" == 2* ]] && return 0 http=$(curl -sSL -o /dev/null -w "%{http_code}" --max-time 10 -r "0-0" -- "$url" 2>&1) || http="000" + printf '%s\n' "HTTP: $http" [[ "$http" == 2* ]] } while IFS= read -r line; do