Skip to content

TitleTruthOrDareModule fixed #105

TitleTruthOrDareModule fixed

TitleTruthOrDareModule fixed #105

name: Send telegram notification
on:
pull_request:
types: [opened]
jobs:
send_telegram_notification:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.x
- name: Set up Python dependencies
run: |
python -m pip install --upgrade pip
pip install python-telegram-bot
- name: Send Telegram notification "Новый МР создан"
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
run: |
python Scripts/send_telegram.py "🚀 New pull request created! 🚀
Author: ${{ github.actor }}
Branch: ${{ github.head_ref }}
Pull Request URL: ${{ github.event.pull_request.html_url }}"