Merge pull request #15961 from MikeMcQuaid/fix_missing_curl

utils/github/artifacts: fix missing Utils::Curl reference.
This commit is contained in:
Mike McQuaid 2023-09-05 08:07:09 -04:00 committed by GitHub
commit e02ec5e07a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,10 +40,10 @@ class GitHubArtifactDownloadStrategy < AbstractFileDownloadStrategy
puts "Already downloaded: #{cached_location}"
else
begin
curl "--location", "--create-dirs", "--output", temporary_path, url,
"--header", "Authorization: token #{@token}",
secrets: [@token],
timeout: timeout
Utils::Curl.curl "--location", "--create-dirs", "--output", temporary_path, url,
"--header", "Authorization: token #{@token}",
secrets: [@token],
timeout: timeout
rescue ErrorDuringExecution
raise CurlDownloadStrategyError, url
end