diff --git a/.github/upversion.py b/.github/upversion.py index e75c711..3c4d6a2 100644 --- a/.github/upversion.py +++ b/.github/upversion.py @@ -177,7 +177,7 @@ def read_current_version() -> str: # 上传到远程仓库 捕获异常 if current_version != new_version: try: - subprocess.run(['git', 'pull'], check=True) + subprocess.run(['git', 'pull', 'origin', current_branch], check=True) subprocess.run(['git', 'add', 'package.json'], check=True) subprocess.run(['git', 'commit', '-m', f"✨ up version {current_branch} -> {new_version}"], check=True) subprocess.run(['git', 'push', 'origin', current_branch], check=True)