Skip to content

Commit

Permalink
Update xxc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MaKrotos authored Aug 30, 2024
1 parent 3b2adf0 commit a7b9508
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions .github/workflows/xxc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ jobs:
}
$bodyJson = $body | ConvertTo-Json -Compress
Invoke-RestMethod -Uri $uri -Method Post -Body $bodyJson -ContentType 'application/json'
- name: Отправить сообщение в Telegram 2
env:
Expand All @@ -48,32 +46,14 @@ jobs:
<b>📦 Версия:</b> ${{ steps.get_version.outputs.VERSION }}
<b>📝 Описание:</b> ${{ github.event.inputs.descr }}
<b>🔧 Solution Name:</b> ${{ env.Solution_Name }}
<b>🔗 <a href='$releaseUrl'>Ссылка на релиз</a></b>
"@
$uri = 'https://api.telegram.org/bot' + $telegramBotToken + '/sendMessage'
$body = @{
chat_id = $telegramChatId
text = $message
parse_mode = 'HTML'
reply_markup = @{
inline_keyboard = @(
@(
@{
text = "Ссылка на релиз"
url = $releaseUrl
}
)
)
}
}
$bodyJson = $body | ConvertTo-Json -Compress
Invoke-RestMethod -Uri $uri -Method Post -Body $bodyJson -ContentType 'application/json'

0 comments on commit a7b9508

Please sign in to comment.