diff --git a/.gitea/workflows/build-and-push.yaml b/.gitea/workflows/build-and-push.yaml index b0212a1b..453cdd8f 100755 --- a/.gitea/workflows/build-and-push.yaml +++ b/.gitea/workflows/build-and-push.yaml @@ -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 +