Skip to content

Test Issue 6

Test Issue 6 #15

name: Telegram Notifications
on:
issues:
types: [opened]
issue_comment:
types: [created]
jobs:
send_notification:
runs-on: ubuntu-latest
steps:
- name: Send Telegram Notification
if: ${{ github.event_name == 'issues' }}
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
format: html
disable_web_page_preview: true
message: |
🚨 New GitHub Issue 🚨
<b>Issue URL:</b> ${{ github.event.issue.html_url }}
<b>${{ github.actor }}</b> created a new issue.
<b>Issue Title:</b> ${{ github.event.issue.title }}
<blockquote>${{ github.event.issue.body }}</blockquote>
- name: Send Telegram Notification
if: ${{ github.event_name == 'issue_comment' }}
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
format: html
disable_web_page_preview: true
message: |
📝 New Comment on GitHub Issue 📝
<b>Comment URL:</b> ${{ github.event.comment.html_url }}
<b>Issue Title:</b> ${{ github.event.issue.title }}
<b>Issue URL:</b> ${{ github.event.issue.html_url }}
<b>${{ github.actor }}</b> commented:
<blockquote>${{ github.event.comment.body }}</blockquote>