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 26, 2024
1 parent f759141 commit e16ce25
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/xxc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,11 @@ jobs:
send_telegram_message:
runs-on: ubuntu-latest
steps:
- name: Проверить релиз
id: check_release
run: echo "exists=false" # Здесь должна быть ваша логика проверки релиза

- name: Получить версию
id: get_version
run: echo "::set-output name=VERSION::1.0.0" # Здесь должна быть ваша логика получения версии
run: echo "::set-output name=VERSION::xxxx" # Версия всегда "xxxx"

- 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 }}
Expand All @@ -29,7 +24,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 = 'Новый релиз: ${{ github.event.inputs.namevers }}`nВерсия: ${{ steps.get_version.outputs.VERSION }}`nОписание: ${{ github.event.inputs.descr }}`nSolution Name: ${{ env.Solution_Name }}`nСсылка на релиз: $releaseUrl'
$message = 'Новый релиз: СтатичноеНазваниеРелиза`nВерсия: xxxx`nОписание: СтатичноеОписание`nSolution Name: СтатичноеНазваниеРешения`nСсылка на релиз: $releaseUrl'
$uri = 'https://api.telegram.org/bot' + $telegramBotToken + '/sendMessage'
$body = @{
chat_id = $telegramChatId
Expand Down

0 comments on commit e16ce25

Please sign in to comment.