From 03deb9d859241202e1337dd19f3c51bbde0688d2 Mon Sep 17 00:00:00 2001 From: David Refoua Date: Sun, 12 Apr 2026 03:43:54 +0330 Subject: [PATCH] fix: handle links to vendor repo archive URL Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2434f6c..47e8761 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -99,7 +99,11 @@ jobs: if ($vendor.url -match 'github\.com/([^/]+)/([^/]+)/(releases/download|archive)/([^/]+)') { $owner = $Matches[1] $repo = $Matches[2] + $pathType = $Matches[3] $tag = $Matches[4] + if ($pathType -eq 'archive') { + $tag = $tag -replace '\.(?:tar\.gz|tgz|zip)$', '' + } $versionLink = "[$($vendor.version)](https://github.com/$owner/$repo/releases/tag/$tag)" } }