mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-15 00:03:38 -07:00
Refactor webhook trigger in CD
This commit is contained in:
parent
fcca052165
commit
b6fdea11a2
20
.github/workflows/CD.yml
vendored
20
.github/workflows/CD.yml
vendored
|
|
@ -75,11 +75,15 @@ jobs:
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|
||||||
- name: Notify Discord
|
- name: Notify Discord
|
||||||
run: |
|
uses: satak/webrequest-action@v1.2.4
|
||||||
Invoke-WebRequest `
|
with:
|
||||||
-Uri "${{ secrets.DISCORD_WEBHOOK }}" `
|
url: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
-Method "POST" `
|
method: POST
|
||||||
-ContentType "application/json; charset=UTF-8" `
|
headers: |
|
||||||
-Body '{"content":"**DiscordChatExporter** new version released!\nVersion: `${{ steps.get-version.outputs.tag }}`\nChangelog: <https://github.com/Tyrrrz/DiscordChatExporter/blob/${{ steps.get-version.outputs.tag }}/Changelog.md>"}' `
|
{
|
||||||
-UseBasicParsing
|
"ContentType": "application/json; charset=UTF-8"
|
||||||
shell: pwsh
|
}
|
||||||
|
payload: |
|
||||||
|
{
|
||||||
|
"content": "**DiscordChatExporter** new version released!\nVersion: `${{ steps.get-version.outputs.tag }}`\nChangelog: <https://github.com/Tyrrrz/DiscordChatExporter/blob/${{ steps.get-version.outputs.tag }}/Changelog.md>"
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue