From 9d23c953daaa80b7dd0d3855d61a6bc7e35df58e Mon Sep 17 00:00:00 2001 From: Vaibhav Sharma Date: Fri, 9 Aug 2024 17:57:29 +0530 Subject: [PATCH] testing failure workflow again --- .github/workflows/deploy.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ccc4f1c..94d4f02 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -46,8 +46,7 @@ jobs: failure-notification: name: "Notify Failure" runs-on: ubuntu-latest - needs: deploy - if: ${{ failure() }} + if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion != 'success' }} steps: - name: Send Discord Notification on Failure run: curl -s -X POST "${{ secrets.DISCORD_WEBHOOK }}" -d "content=🚨 Deployment Failed"