mirror of
https://github.com/actions/runner-images.git
synced 2025-12-17 23:28:57 +00:00
[Windows] Rename and refactor downloading function (#8906)
This commit is contained in:
committed by
GitHub
parent
bfe32a2b12
commit
7dba8776df
@@ -61,7 +61,7 @@ $androidToolset = (Get-ToolsetContent).android
|
||||
# Newer version(s) require Java 11 by default
|
||||
# See https://github.com/actions/runner-images/issues/6960
|
||||
$cmdlineToolsUrl = $androidToolset.commandline_tools_url
|
||||
$cmdlineToolsArchPath = Start-DownloadWithRetry -Url $cmdlineToolsUrl -Name "cmdline-tools.zip"
|
||||
$cmdlineToolsArchPath = Invoke-DownloadWithRetry $cmdlineToolsUrl
|
||||
|
||||
#region Supply chain security
|
||||
$localFileHash = (Get-FileHash -Path $cmdlineToolsArchPath -Algorithm SHA256).Hash
|
||||
|
||||
Reference in New Issue
Block a user