oneshot repo transfer
This commit is contained in:
parent
8a9436adb1
commit
b47f2faf53
2 changed files with 29 additions and 0 deletions
12
oneshot/dl.sh
Executable file
12
oneshot/dl.sh
Executable file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue