Skip to content

Test Issue 4

Test Issue 4 #10

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
message: |
🚨 New GitHub Issue 🚨
<b>Repository:</b> ${{ github.repository }}
<b>${{ github.actor }}</b> created a new issue.
<b>Issue Title:</b> ${{ github.event.issue.title }}
<b>Issue URL:</b> ${{ github.event.issue.html_url }}
- 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
message: |
📝 New Comment on GitHub Issue 📝
<b>Repository:</b> ${{ github.repository }}
<b>Issue URL:</b> ${{ github.event.issue.html_url }}
<b>${{ github.actor }}</b> commented:
<blockquote>${{ github.event.comment.body }}</blockquote>