Skip to content

Commit 647bc87

Browse files
authored
Merge pull request ClickHouse#79409 from ClickHouse/ci_create_release_fix_2
CI: CreateRelease workflow: fix github helper with cache
2 parents 2ee7a0b + a719363 commit 647bc87

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/ci/github_helper.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,9 @@ def get_pull_cached(
173173
raise
174174
self.sleep_on_rate_limit()
175175
logger.debug("Caching PR #%s from API in %s", number, cache_file)
176-
with open(cache_file, "wb") as prfd:
177-
self.dump(pr, prfd) # type: ignore
176+
if self.cache_path.is_dir():
177+
with open(cache_file, "wb") as prfd:
178+
self.dump(pr, prfd) # type: ignore
178179
return pr
179180

180181
def get_user_cached(

0 commit comments

Comments
 (0)