Action logs in email notification

Is there a way to include the logs from a failed step in the email body?

use case:

I have a step that run PHPCS before building a docker images to make sure the code is good. If that step fails id like to review the PHPCS logs in the notification so my developer can easily see what needs to be fixed.

Hi @cryogenx, you can use on of “Default Environment Variables” called BUDDY_FAILED_ACTION_LOGS (more variables here: So for example:

Remember to add this action to the “ACTIONS RUN ON FAILURE”: