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 28, 2024
1 parent 209408f commit c61a72a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/xxc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,17 @@ jobs:
- name: Отправить сообщение в Telegram
if: steps.check_release.outputs.exists == 'false' && github.event.inputs.release == 'true'
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
RELEASE_URL: 123123123
RELEASE_URL: https://github.com/${{ github.repository }}/releases/tag/${{ steps.get_version.outputs.VERSION }}
run: |
pwsh -Command "
$telegramBotToken = '${{ secrets.TELEGRAM_BOT_TOKEN }}'
$telegramChatId = '${{ secrets.TELEGRAM_CHAT_ID }}'
$releaseUrl = 'https://github.com/${{ github.repository }}/releases/tag/${{ steps.get_version.outputs.VERSION }}'
$message = '🎉 *Новый релиз:* ${{ github.event.inputs.namevers }}\n\n📦 *Версия:* 123123123\n\n📝 *Описание:* 123123123\n\n🔧 *Solution Name:* 123123123\n\n🔗 Ссылка на релиз: $releaseUrl'
$message = '🎉 *Новый релиз:* ${{ github.event.inputs.namevers }}\n\n📦 *Версия:* ${{ steps.get_version.outputs.VERSION }}\n\n📝 *Описание:* ${{ github.event.inputs.descr }}\n\n🔧 *Solution Name:* ${{ env.Solution_Name }}\n\n🔗 Ссылка на релиз: $releaseUrl'
$uri = 'https://api.telegram.org/bot' + $telegramBotToken + '/sendMessage'
$body = @{
chat_id = $telegramChatId
Expand Down

0 comments on commit c61a72a

Please sign in to comment.