Skip to content

Commit dbf3af1

Browse files
committed
CI: CreateRelease workflow fix 3
1 parent 18d69b4 commit dbf3af1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/create_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
run: |
129129
python3 ./tests/ci/create_release.py --set-progress-started --progress "update changelog, docker version, security"
130130
131-
git checkout master # in case WF started from feature branch
131+
# git checkout master # in case WF started from feature branch
132132
echo "List versions"
133133
./utils/list-versions/list-versions.sh > ./utils/list-versions/version_date.tsv
134134
echo "Update docker version"

tests/ci/github_helper.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,9 @@ def get_user_cached(
198198
raise
199199
self.sleep_on_rate_limit()
200200
logger.debug("Caching user %s from API in %s", login, cache_file)
201-
with open(cache_file, "wb") as prfd:
202-
self.dump(user, prfd) # type: ignore
201+
if self.cache_path.is_dir():
202+
with open(cache_file, "wb") as prfd:
203+
self.dump(user, prfd) # type: ignore
203204
return user
204205

205206
def _get_cached(self, path: Path): # type: ignore

0 commit comments

Comments
 (0)