From 52c752e6edca4eb72863b89ed9d3be001d790493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9=20=D0=A8=D0=B5?= =?UTF-8?q?=D0=BF=D0=B5=D0=BB=D0=B5=D0=B2?= Date: Wed, 3 Jan 2024 13:32:10 +0100 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 34 +++++++++++----------------------- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e579e3a..a615578 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,27 +6,6 @@ jobs: steps: - name: Set up Git repository uses: actions/checkout@v4 - - - uses: jwalton/gh-find-current-pr@v1 - id: findPr - with: - state: all - - - run: echo "Your PR is ${PR}" - if: success() && steps.findPr.outputs.number - env: - PR: ${{ steps.findPr.outputs.pr }} - - - 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 }} - See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}} - See PR: ${ PR } ${{steps.findPr.outputs.pr}} - name: Create resources folder run: mkdir -p tikz/resource @@ -44,11 +23,20 @@ jobs: with: name: PDF path: astro-notebook.pdf + + - name: send telegram message on push + uses: appleboy/telegram-action@master + with: + to: ${{ secrets.TELEGRAM_TO }} + token: ${{ secrets.TELEGRAM_TOKEN }} + message: | + **${{ github.actor }}** created new commit + Commit message: ${{ github.event.commits[0].message }} + **See changes:** https://github.com/${{ github.repository }}/commit/${{github.sha}} + - name: Send result file to Telegram uses: appleboy/telegram-action@master with: to: ${{ secrets.TELEGRAM_TO }} token: ${{ secrets.TELEGRAM_TOKEN }} message_file: astro-notebook.pdf - -