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 71cf596 commit fd8c29f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/xxc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
$telegramBotToken = '${{ secrets.TELEGRAM_BOT_TOKEN }}'
$telegramChatId = '${{ secrets.TELEGRAM_CHAT_ID }}'
$releaseUrl = 'https://github.com/${{ github.repository }}/releases/tag/${{ steps.get_version.outputs.VERSION }}'
$message = '🎉 <b>Новый релиз:</b> ${{ github.event.inputs.namevers }}<br><br>📦 <b>Версия:</b> ${{ steps.get_version.outputs.VERSION }}<br><br>📝 <b>Описание:</b> ${{ github.event.inputs.descr }}<br><br>🔧 <b>Solution Name:</b> ${{ env.Solution_Name }}<br><br>🔗 <a href="$releaseUrl">Ссылка на релиз</a>'
$message = '🎉 <b>Новый релиз:</b> ${{ github.event.inputs.namevers }}\n\n📦 <b>Версия:</b> ${{ steps.get_version.outputs.VERSION }}\n\n📝 <b>Описание:</b> ${{ github.event.inputs.descr }}\n\n🔧 <b>Solution Name:</b> ${{ env.Solution_Name }}\n\n🔗 <a href="$releaseUrl">Ссылка на релиз</a>'
$uri = 'https://api.telegram.org/bot' + $telegramBotToken + '/sendMessage'
$body = @{
chat_id = $telegramChatId
Expand All @@ -53,3 +53,4 @@ jobs:
$bodyJson = $body | ConvertTo-Json -Compress
Invoke-RestMethod -Uri $uri -Method Post -Body $bodyJson -ContentType 'application/json'

0 comments on commit fd8c29f

Please sign in to comment.