如何在Github Actions中查看已取消步骤的日志? [英] How to see logs of cancelled steps in Github Actions?
本文介绍了如何在Github Actions中查看已取消步骤的日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在工作流程中迈出了一步,我在其中运行命令(python脚本). 该python脚本似乎挂在执行中间的某处-GitHub将步骤显示为运行被卡住,没有任何反应.
I have a step in my workflow where I run a command (python script). This python script appears to be hanging somewhere in the middle of the execution - GitHub shows the step as running it's stuck and nothing happens.
要调试此功能,我想查看python脚本的日志输出.我该如何实现?
To debug this, I would want to see the log output of the python script. How can I achieve that?
推荐答案
You can enable Debug Logging
by adding secrets:
要调试跑步者:
-
ACTIONS_RUNNER_DEBUG
设置为true
调试每个步骤:
-
ACTIONS_STEP_DEBUG
设置为true
这篇关于如何在Github Actions中查看已取消步骤的日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文