From 8040223e5ccf1ab06e757a98de841c1e14c76c07 Mon Sep 17 00:00:00 2001 From: Hieu Vu Date: Sun, 11 Aug 2024 19:41:36 +0700 Subject: [PATCH] Create telegram notification --- .github/workflows/main.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..2d1d6d49 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,20 @@ +name: Telegram message +on: [push] +jobs: + + build: + name: Send Telegram message + 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}}