From c1e65deb335f6e4c8fc52ceddf92ea99312861fb Mon Sep 17 00:00:00 2001 From: Daniel Chico Date: Thu, 29 Feb 2024 17:35:34 -0500 Subject: [PATCH] fix: change actual github action for a call to discord RESTful API --- .github/workflows/ghcr_deploy.yml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ghcr_deploy.yml b/.github/workflows/ghcr_deploy.yml index 50bd711a7..a367ae2b8 100644 --- a/.github/workflows/ghcr_deploy.yml +++ b/.github/workflows/ghcr_deploy.yml @@ -147,13 +147,19 @@ jobs: core.setFailed(error.message); } - name: Github Releases To Discord - uses: SethCohen/github-releases-to-discord@v1.13.1 - with: - webhook_url: ${{ secrets.WEBHOOK_URL }} - color: "2105893" - username: "Release Changelog" - avatar_url: "https://cdn.discordapp.com/avatars/487431320314576937/bd64361e4ba6313d561d54e78c9e7171.png" - content: "||@everyone||" - footer_title: "Changelog" - footer_icon_url: "https://cdn.discordapp.com/avatars/487431320314576937/bd64361e4ba6313d561d54e78c9e7171.png" - footer_timestamp: true + env: + WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }} + run: | + curl -H "Content-Type: application/json" -X POST -d '{ + "content": "||@everyone||", + "username": "Release Changelog", + "avatar_url": "https://cdn.discordapp.com/avatars/487431320314576937/bd64361e4ba6313d561d54e78c9e7171.png", + "embeds": [ + { + "title": "Changelog", + "description": "This is the changelog for the latest release.", + "color": 2105893 + } + ] + }' $WEBHOOK_URL +