From 6330d313c9d41c765d8b51a0c6a2af2cf9b1aace Mon Sep 17 00:00:00 2001 From: Yuhang <2312744987@qq.com> Date: Mon, 11 Dec 2023 20:30:28 +0800 Subject: [PATCH] Create main.yml --- .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 0000000..89e2e69 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,20 @@ +name: telegram message +on: [push] +jobs: + + build: + name: Build + 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}}