Skip to content

Commit

Permalink
Update send-discord-embed.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Adammatthiesen authored Nov 27, 2024
1 parent c1a4f59 commit 02f93f3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/send-discord-embed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,20 @@ jobs:
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
with:
script: |
await fetch(${{ secrets.DISCORD_WEBHOOK }}, {
const fetchURL = '${{ secrets.DISCORD_WEBHOOK }}';
const Content = '${{ inputs.CONTENT }}';
const Embeds = ${{ inputs.EMBEDS }};
await fetch(fetchURL, {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
content: ${{ inputs.CONTENT }},
content: Content,
tts: false,
embeds: ${{ inputs.EMBEDS }}
embeds: Embeds,
})
})

0 comments on commit 02f93f3

Please sign in to comment.