From 96db0cd02f01aed615ca4d45b416f67f4bb4036f Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Mon, 29 May 2023 15:13:36 +0300 Subject: [PATCH] Simpler assets lister --- link-for/bin/link-for-github-release | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/link-for/bin/link-for-github-release b/link-for/bin/link-for-github-release index 9d32578..0f6f117 100755 --- a/link-for/bin/link-for-github-release +++ b/link-for/bin/link-for-github-release @@ -1,6 +1,4 @@ #!/bin/sh -account=$1 -project=$2 -tag=$3 -echo https://github.com/$account/$project/releases/download/$tag/$project-${tag#v}.tar.gz +curl https://api.github.com/repos/${1}/${2}/releases | +gojq -r ".[] | .assets[] | .browser_download_url" -- 2.44.0