Add failure status to ci/cd

This commit is contained in:
Luke R 2025-04-21 09:33:50 -07:00
parent cf7682bc52
commit 1755ead394

View File

@ -72,8 +72,17 @@ jobs:
needs: [changes, Build-and-Push-Docker]
if: ${{ needs.Build-and-Push-Docker.result == 'success' }}
steps:
- name: Post status to discord
- name: Post status of successful run to discord
if: github.event_name != 'pull_request'
uses: sarisia/actions-status-discord@v1
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
if: ${{ needs.Build-and-Push-Docker.result == 'failure' }}
steps:
- name: Post status of failed run to discord
if: github.event_name != 'pull_request'
uses: sarisia/actions-status-discord@v1
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
color: 0xff0000