From fdefbcd97993cc1e19a113495843c5058b382e19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9D=A6?= Date: Sun, 30 Mar 2025 23:13:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E5=B0=86=20git=20pu?= =?UTF-8?q?sh=20=E7=9A=84=E7=9B=AE=E6=A0=87=E5=88=86=E6=94=AF=E4=BB=8E=20H?= =?UTF-8?q?EAD=20=E6=9B=B4=E6=94=B9=E4=B8=BA=20main?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("没有需要更新的文件。")