Skip to content

Testing for Telegram Monitor bot #7

Testing for Telegram Monitor bot

Testing for Telegram Monitor bot #7

name: Telegram notify on push
on:
push:
branches:
- main # если у тебя другая ветка — поменяй
jobs:
notify:
runs-on: ubuntu-latest
steps:

Check failure on line 12 in .github/workflows/telegram_notify.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/telegram_notify.yml

Invalid workflow file

You have an error in your yaml syntax on line 12
- name: Send message to Telegram
- name: Send message to Telegram
run: |
curl -s -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_MONITOR_TOKEN }}/sendMessage" \
-d chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" \
-d parse_mode="HTML" \
-d text="<b>User:</b> ${{ github.actor }} committed the repository <code>${{ github.repository }}</code>
<b>Time:</b> $(date +'%Y-%m-%d %H:%M:%S')
<b>Commit header:</b> ${{ github.event.head_commit.message }}
<a href='${{ github.event.head_commit.url }}'>View Commit Details</a>"