forked from phoenix/litellm-mirror
fix: change actual github action for a call to discord RESTful API
This commit is contained in:
parent
7d26eaf481
commit
c1e65deb33
1 changed files with 16 additions and 10 deletions
26
.github/workflows/ghcr_deploy.yml
vendored
26
.github/workflows/ghcr_deploy.yml
vendored
|
@ -147,13 +147,19 @@ jobs:
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
}
|
}
|
||||||
- name: Github Releases To Discord
|
- name: Github Releases To Discord
|
||||||
uses: SethCohen/github-releases-to-discord@v1.13.1
|
env:
|
||||||
with:
|
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
|
||||||
webhook_url: ${{ secrets.WEBHOOK_URL }}
|
run: |
|
||||||
color: "2105893"
|
curl -H "Content-Type: application/json" -X POST -d '{
|
||||||
username: "Release Changelog"
|
"content": "||@everyone||",
|
||||||
avatar_url: "https://cdn.discordapp.com/avatars/487431320314576937/bd64361e4ba6313d561d54e78c9e7171.png"
|
"username": "Release Changelog",
|
||||||
content: "||@everyone||"
|
"avatar_url": "https://cdn.discordapp.com/avatars/487431320314576937/bd64361e4ba6313d561d54e78c9e7171.png",
|
||||||
footer_title: "Changelog"
|
"embeds": [
|
||||||
footer_icon_url: "https://cdn.discordapp.com/avatars/487431320314576937/bd64361e4ba6313d561d54e78c9e7171.png"
|
{
|
||||||
footer_timestamp: true
|
"title": "Changelog",
|
||||||
|
"description": "This is the changelog for the latest release.",
|
||||||
|
"color": 2105893
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}' $WEBHOOK_URL
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue