mirror of
https://github.com/actions/runner-images.git
synced 2025-12-12 20:26:49 +00:00
[ubuntu] replace wget to download_with_retries helper (#3087)
This commit is contained in:
committed by
GitHub
parent
0917a07677
commit
be27ebfdb3
@@ -5,10 +5,12 @@
|
||||
## Must be run as non-root user after homebrew
|
||||
################################################################################
|
||||
|
||||
# Source the helpers for use with the script
|
||||
source $HELPER_SCRIPTS/install.sh
|
||||
|
||||
# Install GitHub CLI
|
||||
url=$(curl -s https://api.github.com/repos/cli/cli/releases/latest | jq -r '.assets[].browser_download_url|select(contains("linux") and contains("amd64") and contains(".deb"))')
|
||||
wget $url
|
||||
apt install ./gh_*_linux_amd64.deb
|
||||
rm gh_*_linux_amd64.deb
|
||||
download_with_retries $url "/tmp"
|
||||
apt install /tmp/gh_*_linux_amd64.deb
|
||||
|
||||
invoke_tests "CLI.Tools" "GitHub CLI"
|
||||
|
||||
Reference in New Issue
Block a user