From 5f2f3115ab13422259cf527018d9bc4bab601760 Mon Sep 17 00:00:00 2001 From: Kevin Figueroa Date: Sun, 21 May 2023 11:34:41 -0400 Subject: [PATCH] Update notify-telegram.yml --- .github/workflows/notify-telegram.yml | 28 ++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/notify-telegram.yml b/.github/workflows/notify-telegram.yml index 21f48e4..89e2e69 100644 --- a/.github/workflows/notify-telegram.yml +++ b/.github/workflows/notify-telegram.yml @@ -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}}