Files
gitea-download/download-act_runner.sh
Clemens Schwaighofer 11c1daf4a1 Update readme, remove wget need
Do no longer use wget to download the file, use curl.

Check that curl and jq exists.

Update ReadMe file
2024-08-28 12:02:27 +09:00

16 lines
390 B
Bash

#!/usr/bin/env bash
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}$" |\
xargs curl -LJO --output-dir "${download_folder}"
cd - || exit;
# __END__