Added GitHub Workflow to message in the Telegram Channel when a new PR is created #1
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: PR Notification | |
on: | |
pull_request: | |
types: [opened, reopened] | |
jobs: | |
notify: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send Telegram notification | |
uses: appleboy/telegram-action@master | |
with: | |
to: ${{ secrets.TELEGRAM_CHANNEL_ID }} | |
token: ${{ secrets.TELEGRAM_BOT_TOKEN }} | |
message: | | |
New Pull Request Created! | |
Title: ${{ github.event.pull_request.title }} | |
Author: ${{ github.event.pull_request.user.login }} | |
Repository: ${{ github.repository }} | |
Description: | |
${{ github.event.pull_request.body }} | |
Link: ${{ github.event.pull_request.html_url }} |