From 0a6fea1ce9d0fcd384cf6cac26caf0dc683529a5 Mon Sep 17 00:00:00 2001 From: Alexey Golub Date: Mon, 26 Jul 2021 15:27:30 -0700 Subject: [PATCH] Use powershell for Discord webhook --- .github/workflows/CD.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 8e8a75b..05dddfb 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -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' \ No newline at end of file + 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