Skip to content

Commit 6ffd3ff

Browse files
authored
fix: incorrect variable names in setup_act_cache (thanks @Vladislav0Art) (#19)
1 parent ff352a7 commit 6ffd3ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gitbug-java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ class GitBugJavaCli(object):
103103

104104
def __setup_act_cache(self, name: str, download_url: str):
105105
# Download the zip
106-
zip_path = Path(get_project_root(), "act-cache.zip")
107-
if not act_cache.exists():
106+
zip_path = Path(get_project_root(), f"{name}.zip")
107+
if not zip_path.exists():
108108
self.__download(download_url, zip_path)
109109
# Extract the zip
110-
cache_path = Path(get_project_root(), "act-cache")
110+
cache_path = Path(get_project_root(), name)
111111
cache_path.mkdir(parents=True, exist_ok=True)
112112
with zipfile.ZipFile(zip_path, "r") as zip_ref:
113113
zip_ref.extractall(cache_path)

0 commit comments

Comments
 (0)