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- }