Merge pull request #2262 from DanielChico/feature/issue-2146-fix-discord-publish-workflow

fix: change actual github action for a call to discord RESTful API
This commit is contained in:
Krish Dholakia 2024-02-29 16:25:03 -08:00 committed by GitHub
commit 4327a99117
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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