mirror of
https://github.com/actions/runner-images.git
synced 2025-12-17 15:20:11 +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,13 @@
|
||||
## Requires Python >=3.6, must be run as non-root user after toolset installation
|
||||
################################################################################
|
||||
|
||||
# Source the helpers for use with the script
|
||||
source $HELPER_SCRIPTS/install.sh
|
||||
|
||||
# Download latest aws sam cli sources
|
||||
TarballUrl=$(curl -s https://api.github.com/repos/aws/aws-sam-cli/releases/latest | jq -r '.tarball_url')
|
||||
TarballPath="/tmp/aws-sam-cli.tar.gz"
|
||||
wget $TarballUrl -O $TarballPath
|
||||
download_with_retries $TarballUrl "/tmp" "aws-sam-cli.tar.gz"
|
||||
tar -xzf $TarballPath -C /tmp
|
||||
cd /tmp/aws-aws-sam-cli*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user