diff --git a/update_files.py b/update_files.py index deb1c34..b85de4f 100644 --- a/update_files.py +++ b/update_files.py @@ -70,7 +70,7 @@ def main(): commit_message = "自动更新:从 list.yaml 下载最新文件" # 如果没有变更,则 git commit 会返回非零状态,可用 || true 处理 subprocess.run(["git", "commit", "-m", commit_message], check=False) - subprocess.run(["git", "push", "origin", "HEAD"], check=True) + subprocess.run(["git", "push", "origin", "main"], check=True) else: print("没有需要更新的文件。")