Skip to content

Testing for Telegram Monitor bot #10

Testing for Telegram Monitor bot

Testing for Telegram Monitor bot #10

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 disable_web_page_preview="true" \
-d text="👤 <a href='https://github.com/${{ github.actor }}'>${{ github.actor }}</a> pushed to 📁 <a href='https://github.com/${{ github.repository }}'>${{ github.repository_owner }}</a>: 📝 <i>'${{ github.event.head_commit.message }}'</i> (<a href='${{ github.event.head_commit.url }}'>view commit</a>)"