Skip to content

Commit

Permalink
Use powershell for Discord webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz authored Jul 26, 2021
1 parent ebb36de commit 0a6fea1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ jobs:

- name: Notify Discord
run: |
curl '${{ secrets.DISCORD_WEBHOOK }}' \
--data-raw '{"content":"[**DiscordChatExporter** ver. ${{ github.ref }} released](https://github.com/Tyrrrz/DiscordChatExporter/releases/latest)"}' \
-H 'content-type: application/json'
Invoke-WebRequest `
-Uri "${{ secrets.DISCORD_WEBHOOK }}" `
-Method "POST" `
-ContentType "application/json; charset=UTF-8" `
-Body "{`"content`":`"[**DiscordChatExporter** ver. ${{ github.ref }} released](https://github.com/Tyrrrz/DiscordChatExporter/releases/latest)`"}" `
-UseBasicParsing
shell: pwsh

0 comments on commit 0a6fea1

Please sign in to comment.