From b47f2faf53cb9e6315eb12ced5a59c454fe372ff Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 25 Jul 2023 05:24:26 -0600 Subject: oneshot repo transfer --- oneshot/dl.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 oneshot/dl.sh (limited to 'oneshot/dl.sh') diff --git a/oneshot/dl.sh b/oneshot/dl.sh new file mode 100755 index 0000000..4145556 --- /dev/null +++ b/oneshot/dl.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +cd oneshot + +CI_RELEASE_ASSETS=$(curl https://codeberg.org/api/v1/repos/forgejo-contrib/forgejo-deb/releases/tags/v1.20.1-0 | jq -c '.assets[]' | grep .deb) +CI_RELEASE_DEB_URL0=$(echo "$CI_RELEASE_ASSETS" | grep .deb\" | grep forgejo_ | jq -r --jsonargs .browser_download_url) +CI_RELEASE_DEB_URL1=$(echo "$CI_RELEASE_ASSETS" | grep .deb\" | grep forgejo-sqlite_ | jq -r --jsonargs .browser_download_url) +CI_RELEASE_DEB_URL2=$(echo "$CI_RELEASE_ASSETS" | grep .deb\" | grep forgejo-bin_ | jq -r --jsonargs .browser_download_url) + +wget --content-disposition $CI_RELEASE_DEB_URL0 +wget --content-disposition $CI_RELEASE_DEB_URL1 +wget --content-disposition $CI_RELEASE_DEB_URL2 -- cgit v1.2.3