mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-21 05:28:39 +00:00
Use powershell for Discord webhook
This commit is contained in:
10
.github/workflows/CD.yml
vendored
10
.github/workflows/CD.yml
vendored
@@ -72,6 +72,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Notify Discord
|
- name: Notify Discord
|
||||||
run: |
|
run: |
|
||||||
curl '${{ secrets.DISCORD_WEBHOOK }}' \
|
Invoke-WebRequest `
|
||||||
--data-raw '{"content":"[**DiscordChatExporter** ver. ${{ github.ref }} released](https://github.com/Tyrrrz/DiscordChatExporter/releases/latest)"}' \
|
-Uri "${{ secrets.DISCORD_WEBHOOK }}" `
|
||||||
-H 'content-type: application/json'
|
-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
|
||||||
|
|||||||
Reference in New Issue
Block a user