test issue 2 #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | |
message: | | |
🚨 New GitHub Issue 🚨 | |
Repository: ${{ github.repository }} | |
${{ github.actor }} created a new issue. | |
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/telegram-action@master | |
with: | |
to: ${{ secrets.TELEGRAM_TO }} | |
token: ${{ secrets.TELEGRAM_TOKEN }} | |
message: | | |
📝 New Comment on GitHub Issue 📝 | |
Repository: ${{ github.repository }} | |
${{ github.actor }} commented: "${{ github.event.comment.body }}" | |
Issue URL: ${{ github.event.issue.html_url }} |