From b3bc61ab6853924e8114184b22538fb81f28ba0f Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 12 Jun 2026 00:27:05 +0200 Subject: [PATCH] GHA/distcheck: use `https://curl.se/info` Suggested-by: Daniel Stenberg Ref: https://github.com/curl/curl/pull/21977#issuecomment-4684764838 Follow-up to 0cd0a64de4731ad5da138f3b4a314c735cd1dc02 #21977 Closes #21978 --- .github/workflows/distcheck.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/distcheck.yml b/.github/workflows/distcheck.yml index c66bf7f822..f070d907a0 100644 --- a/.github/workflows/distcheck.yml +++ b/.github/workflows/distcheck.yml @@ -392,8 +392,8 @@ jobs: - name: 'download and verify tarballs' run: | echo "--- Detecting latest curl tarball version..." - curl_version="$(curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 60 --retry 3 --retry-connrefused https://curl.se/download.html \ - | grep -o -E 'curl [0-9]+\.[0-9]+\.[0-9]+' | head -n 1 | cut -c 6-)" + curl_version="$(curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 60 --retry 3 --retry-connrefused https://curl.se/info \ + | grep -a1 '^Version:' | grep -o -E '[0-9]+\.[0-9]+\.[0-9]+')" for suffix in .tar.bz2 .tar.gz .tar.xz .zip; do echo "--- Downloading ${curl_version} ${suffix}..."