]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
GHA/distcheck: fix parsing the download page
authorViktor Szakats <commit@vsz.me>
Thu, 11 Jun 2026 20:02:31 +0000 (22:02 +0200)
committerViktor Szakats <commit@vsz.me>
Thu, 11 Jun 2026 20:09:47 +0000 (22:09 +0200)
Fixing:
```
curl: (3) URL rejected: Malformed input to a URL function
```
Ref: https://github.com/curl/curl/actions/runs/27370389568/job/80880800780

Refs:
https://github.com/curl/curl-www/commit/1735f6af6ae75af08e646c0407cdc69cf6a0855d
https://github.com/curl/curl-www/pull/593

Follow-up to 2cc171cbd4a9eac84f5c62c5b987347e5f8880e1 #21759

Closes #21977

.github/workflows/distcheck.yml

index 2d381fbc8891cefea66c86de39171026eabd965d..c66bf7f822c040f64c995cc740d07a58c793f0bb 100644 (file)
@@ -393,7 +393,7 @@ jobs:
         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]+' | cut -c 6-)"
+            | grep -o -E 'curl [0-9]+\.[0-9]+\.[0-9]+' | head -n 1 | cut -c 6-)"
 
           for suffix in .tar.bz2 .tar.gz .tar.xz .zip; do
             echo "--- Downloading ${curl_version} ${suffix}..."