This commit is contained in:
shenjack 2024-04-20 22:53:58 +08:00
parent 2afdabfd63
commit de340e5134
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -51,9 +51,9 @@ def get_env_info() -> dict[str, str]:
env_info["message"] = message.stdout.strip()
# git tag
if ON_CF:
tag = "cf_pages" or run(
tag = run(
["git", "describe", "--tags"], capture_output=True, text=True, encoding="utf-8"
).stdout.split("-")[0]
).stdout.split("-")[0] or "cf_pages"
else:
tag = run(
["git", "describe", "--tags"], capture_output=True, text=True, encoding="utf-8"