Skip to content

Commit

Permalink
dammit
Browse files Browse the repository at this point in the history
  • Loading branch information
ewei068 committed Sep 28, 2024
1 parent 193e9b2 commit ab29ef7
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/discord-webook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,17 @@ jobs:
"thumbnail": { "url": "${{ env.THUMBNAIL_URL }}"}
}]'

run: echo "DISCORD_EMBEDS=${{ env.DISCORD_EMBEDS }}" >> $GITHUB_ENV
- name: Debug Log 2
run: echo {{ env.DISCORD_EMBEDS }}
run: echo "${{ env.DISCORD_EMBEDS }}"
- name: Discord notification
env:
DISCORD_EMBEDS: '[{
"title": "${{ env.EMBED_TITLE }}",
"description": "Test",
"color": ${{ env.EMBED_COLOR }},
"timestamp": "${{ github.event.pull_request.updated_at }}",
"author": { "name": "${{ github.event.sender.login }}", "icon_url": "${{ github.event.sender.avatar_url }}", "url": "https://github.com/${{ github.event.sender.login }}" },
"url": "${{ github.event.pull_request.html_url }}",
"thumbnail": { "url": "${{ env.THUMBNAIL_URL }}"}
}]'

uses: Ilshidur/action-discord@master

0 comments on commit ab29ef7

Please sign in to comment.