Skip to content

Commit

Permalink
echo
Browse files Browse the repository at this point in the history
  • Loading branch information
ewei068 committed Sep 28, 2024
1 parent ecf024b commit 484b714
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/discord-webook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ jobs:
echo "EMBED_COLOR=7419530" >> $GITHUB_ENV
echo "THUMBNAIL_URL=https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/5e738264-b25c-401f-ac12-2d60ec54eae2/df4fv5s-9ccb7c4a-920b-4c72-96bc-7a497e839c07.jpg/v1/fill/w_936,h_686,q_75,strp/pokemon_galatic_battles___pikachu_pushing_by_axlfan28_df4fv5s-fullview.jpg?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7ImhlaWdodCI6Ijw9Njg2IiwicGF0aCI6IlwvZlwvNWU3MzgyNjQtYjI1Yy00MDFmLWFjMTItMmQ2MGVjNTRlYWUyXC9kZjRmdjVzLTljY2I3YzRhLTkyMGItNGM3Mi05NmJjLTdhNDk3ZTgzOWMwNy5qcGciLCJ3aWR0aCI6Ijw9OTM2In1dXSwiYXVkIjpbInVybjpzZXJ2aWNlOmltYWdlLm9wZXJhdGlvbnMiXX0.JxB3RJXeRjlDoFC1yv9yGrOGQO8Radk6IJ3_Z2Im_rg" >> $GITHUB_ENV
fi
echo '[{
"title": "${{ env.EMBED_TITLE }}",
"description": "${{ env.COMMIT_MESSAGE }}",
"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 }}"}
}]'
- name: Discord notification
env:
DISCORD_EMBEDS: '[{
Expand Down

0 comments on commit 484b714

Please sign in to comment.