From 9cad52bc2aee36d669826e94a9b02e40b70fa606 Mon Sep 17 00:00:00 2001 From: NianBroken Date: Wed, 7 Feb 2024 21:17:30 +0800 Subject: [PATCH] add --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index f0c1601..a9cea0a 100644 --- a/main.py +++ b/main.py @@ -383,7 +383,8 @@ with open(info_file_path, "r") as info_file: # 输出运行日志 print(run_log) -github_step_summary_run_log = run_log.replace('\n', '\n\n') +github_step_summary_run_log = run_log.replace("\n", "\n\n") +github_step_summary_run_log = "# 正方教务管理系统成绩推送\n\n" + github_step_summary_run_log # 将 run_log 写入到 GitHub Actions 的环境文件中 github_step_summary_path = os.environ.get("GITHUB_STEP_SUMMARY")