From 69559ea186422ea93209d4ef3be6eec05f44d7b1 Mon Sep 17 00:00:00 2001 From: pooneyy <85266337+pooneyy@users.noreply.github.com> Date: Thu, 9 Oct 2025 03:18:37 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(renovate):=20add=20directory?= =?UTF-8?q?=20content=20verification?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - add check_directory_contents function to print directory contents - integrate directory content check after successful directory rename for better debugging --- .github/workflows/renovate-app-version.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/renovate-app-version.py b/.github/workflows/renovate-app-version.py index 804c6b9d5..b302a8724 100644 --- a/.github/workflows/renovate-app-version.py +++ b/.github/workflows/renovate-app-version.py @@ -55,6 +55,10 @@ def replace_version_in_dirname(old_ver_dir : str, new_version : str) -> str: else: return new_version +def check_directory_contents(check_dir): + print(f"{check_dir} 目录内容:") + for item in os.listdir(check_dir): + print(f" - {item}") def safe_rename_directory(old_path: str, new_path: str) -> bool: """ @@ -81,6 +85,7 @@ def safe_rename_directory(old_path: str, new_path: str) -> bool: # 验证重命名是否成功 if os.path.exists(new_path) and not os.path.exists(old_path): + check_directory_contents(new_path) print(f"✓ 重命名成功") return True else: