diff --git a/.github/workflows/discord-webhook.yml b/.github/workflows/discord-webhook.yml index 5ce32cd..9181824 100644 --- a/.github/workflows/discord-webhook.yml +++ b/.github/workflows/discord-webhook.yml @@ -15,4 +15,7 @@ jobs: uses: tsickert/discord-webhook@v5.3.0 with: webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }} - raw-data: discord-webhook.json + embed-title: ${{ github.event.head_commit.message }} + embed-description: "A new commit has been pushed to the repository." + username: "Github Actions" + avatar-url: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png \ No newline at end of file diff --git a/discord-webhook.json b/discord-webhook.json deleted file mode 100644 index 32852fa..0000000 --- a/discord-webhook.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "content": "New commit pushed to repository", - "embeds": [ - { - "title": "${{ github.event.head_commit.message }}", - "description": "A new commit has been pushed to the repository.", - "url": "https://cursedcreationsteam.github.io", - "color": 123456, - "footer": { - "text": "Push Notification" - } - } - ] -}