Compare commits
No commits in common. "cf0a30d7e6b105ee5f89c0bdcb1081f4f044caa8" and "9459a6ebaafead81fe198ef4b1c78df4c27ad524" have entirely different histories.
cf0a30d7e6
...
9459a6ebaa
10
deploy.py
10
deploy.py
@ -51,13 +51,11 @@ def get_env_info() -> dict[str, str]:
|
||||
env_info["message"] = message.stdout.strip()
|
||||
# git tag
|
||||
if ON_CF:
|
||||
tag = run(
|
||||
["git", "describe", "--tags"], capture_output=True, text=True, encoding="utf-8"
|
||||
).stdout.split("-")[0] or "cf_pages"
|
||||
tag = "cf_pages"
|
||||
else:
|
||||
tag = run(
|
||||
["git", "describe", "--tags"], capture_output=True, text=True, encoding="utf-8"
|
||||
).stdout.split("-")[0]
|
||||
).stdout
|
||||
env_info["tag"] = tag.strip()
|
||||
return env_info
|
||||
|
||||
@ -96,7 +94,7 @@ if __name__ == "__main__":
|
||||
border = border_template.format(f"#{hash_color:06x}")
|
||||
|
||||
# git 信息:
|
||||
version_info = f"{file_branch_name}/{branch}:{tag}-{commit[:6]}<br/>{message}"
|
||||
version_info = f"{file_branch_name}/{branch}:{tag}<br/>{message}"
|
||||
marker = marker_template.format(version_info)
|
||||
|
||||
print(f"Branch: {file_branch_name}\n{border}\n{marker}\n")
|
||||
@ -106,7 +104,7 @@ if __name__ == "__main__":
|
||||
border = border_template.format("greenyellow")
|
||||
|
||||
# git 信息:
|
||||
version_info = f"{branch}:{tag}-{commit[:6]}"
|
||||
version_info = f"{branch}:{tag}"
|
||||
marker = marker_template.format(version_info)
|
||||
print(f"Master: {border}\n{marker}\n")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user