From 5195bac03a4d9a186ccff71265aff892d1094f12 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 20 Apr 2024 22:55:48 +0800 Subject: [PATCH] =?UTF-8?q?yea=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/deploy.py b/deploy.py index 3ff21e0..048183c 100644 --- a/deploy.py +++ b/deploy.py @@ -8,12 +8,13 @@ if ON_CF: print("Running on Cloudflare Pages, trying to git fetch --all") - # add remote - run( - ["git", "remote", "add", "origin", "https://github.com/shenjackyuanjie/fast-namerena.git"], - ) result = run(["git", "fetch", "--all"], check=False) print(f"git fetch --all: {result}") + # 提前尝试输出一遍下面这堆信息 + run(["git", "branch", "--show-current"], check=False) + run(["git", "rev-parse", "HEAD"], check=False) + run(["git", "describe", "--tags"], check=False) + run(["git", "log", "-1", "--pretty=%B"], check=False) def get_env_info() -> dict[str, str]: