Skip to content

Commit

Permalink
Action fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
m1maker committed Aug 12, 2024
1 parent 2107a51 commit 30ab21c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/Telegram Notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ jobs:

- name: Send Telegram Notification
run: |
python -c "import asyncio; from telegram import Bot; async def send_message(): bot = Bot(token='${{ secrets.TELEGRAM_BOT_TOKEN }}'); chat_id = '${{ secrets.TELEGRAM_CHANNEL_ID }}'; commit_link = '${{ github.event.commits[0].url }}'; await bot.send_message(chat_id=chat_id, text=f'New commit! {commit_link}'); await send_message()"
python -c "
import asyncio
from telegram import Bot

async def send_message():
bot = Bot(token='${{ secrets.TELEGRAM_BOT_TOKEN }}')
chat_id = '${{ secrets.TELEGRAM_CHANNEL_ID }}'
commit_link = '${{ github.event.head_commit.url }}'
await bot.send_message(chat_id=chat_id, text=f'New commit! {commit_link}')

asyncio.run(send_message())
"

0 comments on commit 30ab21c

Please sign in to comment.