From 1755ead394b0f81df4f94290944b8f7ae022d0fc Mon Sep 17 00:00:00 2001 From: Luke R Date: Mon, 21 Apr 2025 09:33:50 -0700 Subject: [PATCH] Add failure status to ci/cd --- .gitea/workflows/build-and-push.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 +