When an action is skipped, why doesn't the log detail why?

Sometimes a github action reports it was skipped, but does not explain what the logic was. I would like it if the action log explained the decision, so I know if it’s my fault or not!

e.g. ‘if: clause was false’ or ‘dependabot is not allowed to execute in this context’ or something like that.

3 Likes

This information is available, but not switched on by default. Follow the instructions here to get the extra debug messages:

With that done you’ll get messages like this for each action:

##[debug]Evaluating condition for step: 'Run actions/upload-artifact@v2'
##[debug]Evaluating: (success() && (github.event_name != 'delete'))
##[debug]Evaluating And:
##[debug]..Evaluating success:
##[debug]..=> false
##[debug]=> false
##[debug]Expanded: (false && (github['event_name'] != 'delete'))
##[debug]Result: false
1 Like