问题
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 totrue
To debug each step:
ACTIONS_STEP_DEBUG
set totrue
来源:https://stackoverflow.com/questions/58970478/how-to-see-logs-of-cancelled-steps-in-github-actions