From ef1b5f2c271dcb74c970d9e95e0565b1884d71b0 Mon Sep 17 00:00:00 2001 From: SolDev69 <40839581+SolDev69@users.noreply.github.com> Date: Wed, 10 May 2023 12:53:14 -0400 Subject: [PATCH] redo webhook --- .github/workflows/discord-webhook.yml | 5 ++++- discord-webhook.json | 14 -------------- 2 files changed, 4 insertions(+), 15 deletions(-) delete mode 100644 discord-webhook.json 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" - } - } - ] -}