Update notify-telegram.yml

This commit is contained in:
Kevin Figueroa 2023-05-21 11:34:41 -04:00 committed by GitHub
parent f08d732e44
commit 5f2f3115ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,18 +1,20 @@
name: Telegram Notifier
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
name: telegram message
on: [push]
jobs:
notifytelegram:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Notify the commit on Telegram
uses: EverythingSuckz/github-telegram-notify@main
- name: send telegram message on push
uses: appleboy/telegram-action@master
with:
bot_token: '${{ secrets.BOT_TOKEN }}'
chat_id: '${{ secrets.CHAT_ID }}'
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
${{ github.actor }} created commit:
Commit message: ${{ github.event.commits[0].message }}
Repository: ${{ github.repository }}
See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}