From ef74faefff675463796139eb67f9be08518dfe02 Mon Sep 17 00:00:00 2001 From: Ian Clarkson Date: Mon, 5 Jan 2026 12:44:00 -0800 Subject: [PATCH] Downloading latest release instead of newest tag --- lib/utils.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils.sh b/lib/utils.sh index cf8607d..e6cdb53 100644 --- a/lib/utils.sh +++ b/lib/utils.sh @@ -75,6 +75,6 @@ get_latest_luarocks_version() { if [ -n "${GITHUB_API_TOKEN:-}" ]; then curl_opts=("${curl_opts[@]}" -H "Authorization: token ${GITHUB_API_TOKEN}") fi - curl "${curl_opts[@]}" "https://api.github.com/repos/luarocks/luarocks/tags?per_page=1&page=1" | - grep '"name"' | cut -d\" -f4 | cut -c2- + curl "${curl_opts[@]}" "https://api.github.com/repos/luarocks/luarocks/releases/latest" | + grep '"tag_name"' | cut -d\" -f4 | cut -c2- }