mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-24 03:36:52 -04:00
Refactor webhook trigger in CD
This commit is contained in:
parent
fcca052165
commit
b6fdea11a2
1 changed files with 12 additions and 8 deletions
20
.github/workflows/CD.yml
vendored
20
.github/workflows/CD.yml
vendored
|
@ -75,11 +75,15 @@ jobs:
|
|||
asset_content_type: application/zip
|
||||
|
||||
- name: Notify Discord
|
||||
run: |
|
||||
Invoke-WebRequest `
|
||||
-Uri "${{ secrets.DISCORD_WEBHOOK }}" `
|
||||
-Method "POST" `
|
||||
-ContentType "application/json; charset=UTF-8" `
|
||||
-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
|
||||
shell: pwsh
|
||||
uses: satak/webrequest-action@v1.2.4
|
||||
with:
|
||||
url: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
method: POST
|
||||
headers: |
|
||||
{
|
||||
"ContentType": "application/json; charset=UTF-8"
|
||||
}
|
||||
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…
Add table
Add a link
Reference in a new issue