Update notify-telegram.yml
This commit is contained in:
parent
69af359942
commit
f8777a053f
1 changed files with 16 additions and 9 deletions
21
.github/workflows/notify-telegram.yml
vendored
21
.github/workflows/notify-telegram.yml
vendored
|
@ -1,14 +1,21 @@
|
||||||
name: telegram message
|
name: telegram message
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
notify:
|
|
||||||
name: Notify via Telegram
|
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 }}
|
||||||
|
format: markdown
|
||||||
|
message: |
|
||||||
|
[${{ github.actor }}](https://github.com/${{ github.actor }}) created a commit on [${{ github.repository }}](https://github.com/${{ github.repository }})
|
||||||
|
|
||||||
|
*Commit message*:
|
||||||
|
${{ github.event.commits[0].message }}
|
||||||
|
|
||||||
|
[See changes](https://github.com/${{ github.repository }}/commit/${{github.sha}})
|
||||||
|
|
Loading…
Add table
Reference in a new issue