Update notify-telegram.yml
This commit is contained in:
parent
f08d732e44
commit
5f2f3115ab
1 changed files with 15 additions and 13 deletions
28
.github/workflows/notify-telegram.yml
vendored
28
.github/workflows/notify-telegram.yml
vendored
|
@ -1,18 +1,20 @@
|
||||||
name: Telegram Notifier
|
name: telegram message
|
||||||
|
on: [push]
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
notifytelegram:
|
build:
|
||||||
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Notify the commit on Telegram
|
- name: send telegram message on push
|
||||||
uses: EverythingSuckz/github-telegram-notify@main
|
uses: appleboy/telegram-action@master
|
||||||
with:
|
with:
|
||||||
bot_token: '${{ secrets.BOT_TOKEN }}'
|
to: ${{ secrets.TELEGRAM_TO }}
|
||||||
chat_id: '${{ secrets.CHAT_ID }}'
|
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}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue