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"