'How can I email the error logs from GitHub runner?
Solution 1:[1]
You can add an extra step at the end of your Job that only runs if any of the previous steps failed and send an email with the result message using mailutils for bash.
- name: "Notify on failure"
if: failure()
run: |
sudo apt-get install mailutils
echo "Body with msg: ${{ steps.response.outputs.result }}" | mail -s "Subject" ${{ secrets.EMAIL }}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | R44 |