From 0ea711f468fc68c3d2fcdf34646340a2c5c990b7 Mon Sep 17 00:00:00 2001 From: Elvis Wei Date: Fri, 27 Sep 2024 17:51:00 -0700 Subject: [PATCH] maybe fix --- .github/workflows/discord-webook.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/discord-webook.yml b/.github/workflows/discord-webook.yml index c13d7e8..5237036 100644 --- a/.github/workflows/discord-webook.yml +++ b/.github/workflows/discord-webook.yml @@ -37,7 +37,7 @@ jobs: echo "EMBED_COLOR=7419530" >> $GITHUB_ENV echo "THUMBNAIL_URL=https://raw.githubusercontent.com/ewei068/pokestar/refs/heads/main/media/images/misc/pikachu-push.jpg" >> $GITHUB_ENV fi - + - name: Debug Log env: DISCORD_EMBEDS: '[{ @@ -50,17 +50,8 @@ jobs: "thumbnail": { "url": "${{ env.THUMBNAIL_URL }}"} }]' - run: echo "${{ env.DISCORD_EMBEDS }}" + run: | + echo '${{ env.DISCORD_EMBEDS }}' + ehco '${{ env.DISCORD_EMBEDS }}' >> $GITHUB_ENV - 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