This commit is contained in:
NianBroken
2024-02-07 21:00:12 +08:00 Unverified
parent f29dcdfc9f
commit 97704dd3a2
+4 -4
View File
@@ -383,13 +383,13 @@ with open(info_file_path, "r") as info_file:
# 输出运行日志
print(run_log)
run_log = "正方教务管理系统成绩推送" + run_log
run_log += workflow_info
run_log = "正方教务管理系统成绩推送\n" + run_log
run_log += f"\n{workflow_info}"
# 将 run_log 写入到 GitHub Actions 的环境文件中
github_step_summary_path = os.environ.get('GITHUB_STEP_SUMMARY')
github_step_summary_path = os.environ.get("GITHUB_STEP_SUMMARY")
if github_step_summary_path:
with open(github_step_summary_path, 'w', encoding='utf-8') as file:
with open(github_step_summary_path, "w", encoding="utf-8") as file:
file.write(run_log)
# 删除 __pycache__ 缓存目录及其内容