From dc6fdec1ed171930587d69f50b2972e65af9f158 Mon Sep 17 00:00:00 2001 From: David Young Date: Wed, 13 Jan 2021 22:13:33 +1300 Subject: [PATCH] Add embeds to discord notifications --- .../on-push-master-notify-discord.yml | 23 ++++++++++--------- .vscode/settings.json | 3 +++ 2 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.github/workflows/on-push-master-notify-discord.yml b/.github/workflows/on-push-master-notify-discord.yml index a2bb6b7..73af29a 100644 --- a/.github/workflows/on-push-master-notify-discord.yml +++ b/.github/workflows/on-push-master-notify-discord.yml @@ -17,15 +17,16 @@ jobs: - name: Discord notification env: 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: - args: | - 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 }}) - --- - \ No newline at end of file + args: The [Geek's Cookbook](https://geek-cookbook.funkypenguin.co.nz) has been updated! \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..8d2cd0a --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "git.alwaysSignOff": false +} \ No newline at end of file