update workflow

This commit is contained in:
egor-white
2025-06-14 17:57:20 +03:00
parent 428392033d
commit 2ccf9e909b

View File

@@ -171,10 +171,17 @@ jobs:
with:
commit_message: "Update update's.json and changelog"
file_pattern: 'update.json update_extended.json update_tv.json changelog.md'
- name: Send bot post
run: |
- name: Send bot post
env:
MESSAGE_TEXT: |
🔄 <b>Обновление модуля</b> ${{ inputs.version }}
📋 Изменения: ${{ inputs.release_changes }}
⬇️ <a href='https://github.com/egor-white/zaprett/releases/tag/${{ inputs.tag }}'>Скачать</a>
run: |
curl -X POST "https://api.telegram.org/bot${{ secrets.BOT_TOKEN }}/sendMessage" \
-d chat_id=1446986479 \
-d parse_mode=HTML \
-d disable_web_page_preview=true \
--data-urlencode "text=🔄 <b>Обновление модуля</b> ${{ inputs.version }}\n\n📋 Изменения: ${{ inputs.release_changes }}\n\n⬇ <a href='https://github.com/egor-white/zaprett/releases/tag/${{ inputs.tag }}'>Скачать</a>"
--data-urlencode "text=$MESSAGE_TEXT"