How to see logs of cancelled steps in Github Actions?

冷暖自知 提交于 2020-01-25 07:04:10

问题


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.

To debug this, I would want to see the log output of the python script. How can I achieve that?


回答1:


You can enable Debug Logging by adding secrets:

To debug a runner:

  • ACTIONS_RUNNER_DEBUG set to true

To debug each step:

  • ACTIONS_STEP_DEBUG set to true


来源:https://stackoverflow.com/questions/58970478/how-to-see-logs-of-cancelled-steps-in-github-actions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!