Skip to content

Commit

Permalink
Create telegram-notifications.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Heistergand authored Apr 28, 2024
1 parent 559f1ca commit cc59c77
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/telegram-notifications.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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/[email protected]
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
🚨 New GitHub Issue 🚨
Repository: ${{ github.repository }}
Action: ${{ github.event_name }}
Issue Title: ${{ github.event.issue.title }}
Issue URL: ${{ github.event.issue.html_url }}
- name: Send Telegram Notification
if: ${{ github.event_name == 'issue_comment' }}
uses: appleboy/[email protected]
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
📝 New Comment on GitHub Issue 📝
Repository: ${{ github.repository }}
Action: ${{ github.event_name }}
Comment Body: ${{ github.event.comment.body }}
Issue URL: ${{ github.event.issue.html_url }}

0 comments on commit cc59c77

Please sign in to comment.