Skip to content

Commit

Permalink
Fixed discord message
Browse files Browse the repository at this point in the history
  • Loading branch information
print-Sathvik committed Feb 23, 2024
1 parent 20f37d9 commit d88c066
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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

0 comments on commit d88c066

Please sign in to comment.