This commit is contained in:
NianBroken
2024-02-07 21:40:12 +08:00 Unverified
parent 8c7d9ea7b2
commit 76899c72be
+2 -1
View File
@@ -1,4 +1,5 @@
# 必要的库
import re
import base64
import hashlib
import os
@@ -383,7 +384,7 @@ with open(info_file_path, "r") as info_file:
# 输出运行日志
print(run_log)
github_step_summary_run_log = run_log.replace('\n\n', '\n').replace('\n', '\n\n')
github_step_summary_run_log = re.sub("\n+", "\n\n", run_log)
github_step_summary_run_log = "# 正方教务管理系统成绩推送\n\n" + github_step_summary_run_log
# 将 run_log 写入到 GitHub Actions 的环境文件中