Skip to content

Create telegram notification #36

Create telegram notification

Create telegram notification #36

Workflow file for this run

name: Telegram message
on:
pull_request:
branches: [ "main" ]
jobs:
build:
name: Send Telegram message
runs-on: ubuntu-latest
steps:
- name: View github environment
run: |
echo github.event.number = ${{ github.event.number }}
echo github.event.pull_request.number = ${{ github.event.pull_request.number }}
echo github.event.issue.number = ${{ github.event.issue.number }}
- name: send telegram message on push
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
format: markdown
message: |
👨‍💻 *New PR Updates from ${{ github.actor }}*
⭐️ *Latest commit*: ${{ github.event.commits[0].message }}
🚀 *PR*: https://github.com/${{ github.repository }}
${{ github.event.commit[0].message }}
🛠️ *Changes*: https://github.com/${{ github.repository }}/commit/${{github.sha}}
${{ github.event.pull_request.head.sha }}