Update notify-telegram.yml
This commit is contained in:
parent
5f2f3115ab
commit
1bb75d1415
1 changed files with 8 additions and 15 deletions
23
.github/workflows/notify-telegram.yml
vendored
23
.github/workflows/notify-telegram.yml
vendored
|
@ -1,20 +1,13 @@
|
|||
name: telegram message
|
||||
on: [push]
|
||||
jobs:
|
||||
|
||||
build:
|
||||
name: Build
|
||||
jobs:
|
||||
notify:
|
||||
name: Notify via Telegram
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: send telegram message on push
|
||||
uses: appleboy/telegram-action@master
|
||||
with:
|
||||
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}}
|
||||
- name: Send message to Telegram
|
||||
uses: Lukasss93/telegram-action@v2
|
||||
env:
|
||||
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
|
||||
TELEGRAM_CHAT: ${{ secrets.TELEGRAM_TO }}
|
||||
|
|
Loading…
Add table
Reference in a new issue