mirror of
https://github.com/funkypenguin/geek-cookbook/
synced 2025-12-13 17:56:26 +00:00
Add embeds to discord notifications
This commit is contained in:
@@ -17,15 +17,16 @@ jobs:
|
|||||||
- name: Discord notification
|
- name: Discord notification
|
||||||
env:
|
env:
|
||||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
uses: Ilshidur/action-discord@master
|
DISCORD_EMBEDS: |
|
||||||
|
{
|
||||||
|
"description": "```${{github.event.commits[0].message}}```",
|
||||||
|
"url": "{{ EVENT_PAYLOAD.compare }}",
|
||||||
|
"color": 7418285,
|
||||||
|
"author": {
|
||||||
|
"name": "${{github.sender.login}}",
|
||||||
|
"url": "${{github.sender.html_url}}",
|
||||||
|
"icon_url": "${{github.sender.avatar_url}}"
|
||||||
|
}
|
||||||
|
uses: Ilshidur/action-discord@master@0.3.0
|
||||||
with:
|
with:
|
||||||
args: |
|
args: The [Geek's Cookbook](https://geek-cookbook.funkypenguin.co.nz) has been updated!
|
||||||
Greetings, geeks! 🤓
|
|
||||||
|
|
||||||
The [Geek's Cookbook](https://geek-cookbook.funkypenguin.co.nz) has been updated!
|
|
||||||
|
|
||||||
Here's what @{{ GITHUB_ACTOR }} just cooked:
|
|
||||||
|
|
||||||
:partying_face: [${{github.event.commits[0].message}}]({{ EVENT_PAYLOAD.compare }})
|
|
||||||
---
|
|
||||||
|
|
||||||
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"git.alwaysSignOff": false
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user