GitHubArtifactDownloadStrategy: set cache properly

Co-authored-by: Bo Anderson <mail@boanderson.me>
This commit is contained in:
Carlo Cabrera 2023-05-17 11:43:14 +08:00
parent d372eb86ca
commit ee6ef00a73
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -637,6 +637,11 @@ end
#
# @api private
class GitHubArtifactDownloadStrategy < AbstractFileDownloadStrategy
def initialize
super
@cache = HOMEBREW_CACHE/"gh-actions-artifact"
end
def fetch(timeout: nil)
ohai "Downloading #{url}"
if cached_location.exist?