Add full working gitea action runner downloader
This commit is contained in:
@@ -1,4 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#curl -s https://api.github.com/repos/go-gitea/gitea/releases/latest |grep browser_download_url | cut -d '"' -f 4 | grep '\linux-amd64$' | wget -i -
|
||||
echo "https://dl.gitea.com/act_runner/"
|
||||
BASE_FOLDER=$(dirname "$(readlink -f "$0")")"/";
|
||||
# shellcheck source=init.sh
|
||||
. "${BASE_FOLDER}init.sh";
|
||||
|
||||
cd "${download_folder}" || exit;
|
||||
curl -s https://gitea.com/api/v1/repos/gitea/act_runner/releases/latest |\
|
||||
jq ".assets[].browser_download_url" |\
|
||||
cut -d '"' -f 2 |\
|
||||
grep "${arch}$" |\
|
||||
wget -P "${download_folder}" -i -
|
||||
cd - || exit;
|
||||
|
||||
# __END__
|
||||
|
||||
Reference in New Issue
Block a user