mirror of
https://github.com/actions/runner-images.git
synced 2025-12-12 03:57:32 +00:00
[ubuntu] replace wget to download_with_retries helper (#3087)
This commit is contained in:
committed by
GitHub
parent
0917a07677
commit
be27ebfdb3
@@ -71,7 +71,7 @@ ln -s /usr/share/apache-maven-3.6.3/bin/mvn /usr/bin/mvn
|
||||
# The release download URL looks like this: https://services.gradle.org/distributions/gradle-5.2.1-bin.zip
|
||||
# The release version is extracted from the download URL (i.e. 5.2.1).
|
||||
# After all of this, the release is downloaded, extracted, a symlink is created that points to it, and GRADLE_HOME is set.
|
||||
wget -O gradleReleases.html https://gradle.org/releases/
|
||||
wget -qO gradleReleases.html https://gradle.org/releases/
|
||||
gradleUrl=$(grep -m 1 -o "https:\/\/services.gradle.org\/distributions\/gradle-.*-bin\.zip" gradleReleases.html | head -1)
|
||||
gradleVersion=$(echo $gradleUrl | sed -nre 's/^[^0-9]*(([0-9]+\.)*[0-9]+).*/\1/p')
|
||||
rm gradleReleases.html
|
||||
|
||||
Reference in New Issue
Block a user