This commit is contained in:
NianBroken
2024-02-07 20:10:24 +08:00 Unverified
parent 53280f0d19
commit 121802c5b3
2 changed files with 12 additions and 3 deletions
+8
View File
@@ -23,6 +23,7 @@ github_workflow = os.environ.get("GITHUB_WORKFLOW")
github_run_number = os.environ.get("GITHUB_RUN_NUMBER")
github_run_id = os.environ.get("GITHUB_RUN_ID")
beijing_time = os.environ.get("BEIJING_TIME")
step_summary = os.environ.get("GITHUB_STEP_SUMMARY")
# 将字符串转换为布尔值
force_push_message = force_push_message == "True"
@@ -372,6 +373,13 @@ else:
else:
print("成绩未更新")
# 修改环境变量的值
step_summary += "This is a test message.\n"
# 设置环境变量的值
os.environ["GITHUB_STEP_SUMMARY"] = step_summary
# 更新info.txt
with open(info_file_path, "r") as info_file:
info_file_content = info_file.read()