Use powershell for Discord webhook

pull/678/head
Alexey Golub 3 years ago committed by GitHub
parent ebb36de354
commit 0a6fea1ce9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save