diff --git a/.github/workflows/notify-telegram.yml b/.github/workflows/notify-telegram.yml index 89e2e69..60067c6 100644 --- a/.github/workflows/notify-telegram.yml +++ b/.github/workflows/notify-telegram.yml @@ -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 }}