GitHubArtifactDownloadStrategy: set cache properly
Co-authored-by: Bo Anderson <mail@boanderson.me>
This commit is contained in:
parent
d372eb86ca
commit
ee6ef00a73
@ -637,6 +637,11 @@ end
|
|||||||
#
|
#
|
||||||
# @api private
|
# @api private
|
||||||
class GitHubArtifactDownloadStrategy < AbstractFileDownloadStrategy
|
class GitHubArtifactDownloadStrategy < AbstractFileDownloadStrategy
|
||||||
|
def initialize
|
||||||
|
super
|
||||||
|
@cache = HOMEBREW_CACHE/"gh-actions-artifact"
|
||||||
|
end
|
||||||
|
|
||||||
def fetch(timeout: nil)
|
def fetch(timeout: nil)
|
||||||
ohai "Downloading #{url}"
|
ohai "Downloading #{url}"
|
||||||
if cached_location.exist?
|
if cached_location.exist?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user