Use powershell for Discord webhook

This commit is contained in:
Alexey Golub 2021-07-26 15:27:30 -07:00 committed by GitHub
parent ebb36de354
commit 0a6fea1ce9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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