From d88c066ffdce6e1c83a163ab8bb659bb97f8a39b Mon Sep 17 00:00:00 2001 From: Sathvik Date: Sat, 24 Feb 2024 02:56:47 +0530 Subject: [PATCH] Fixed discord message --- .github/workflows/main.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 6e2ad28..cbd9a20 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -1,9 +1,5 @@ name: Auto Test Election creation and Voting system on: push -env: - PG_DATABASE: wd-todo-test - PG_USER: postgres - PG_PASSWORD: postgres jobs: run-tests: runs-on: ubuntu-latest @@ -64,6 +60,8 @@ jobs: api-key: ${{ secrets.RENDER_API_KEY }} notify: + needs: [run-tests, build_deploy] + if: ${{ always() }} name: Discord Notification runs-on: ubuntu-latest steps: @@ -72,7 +70,7 @@ jobs: with: webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }} title: New Commit Pushed - message: "**${{ github.event.push.head_commit.message }}**\n**Creator:** ${{ github.event.push.pusher.username }}\n${{ github.event.push.head_commit.url }}" + message: "${{ github.push.head_commit.message }} \n Creator: ${{ github.push.pusher.username }} \n ${{ github.event.push.head_commit.url }}" include_image: true avatar_url: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png username: GitHub Push Notifier