diff --git a/.github/workflows/discord-webook.yml b/.github/workflows/discord-webook.yml index 8a7651a..b2a205b 100644 --- a/.github/workflows/discord-webook.yml +++ b/.github/workflows/discord-webook.yml @@ -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