From 014d9b31cff179e90696274ccdf90b3578b7dc29 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 18:52:42 +0100 Subject: [PATCH] telegram notification --- .github/workflows/main.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d3832ba..b0e9adb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,9 +16,18 @@ jobs: latexmk_shell_escape: true args: -pdf -file-line-error -halt-on-error -interaction=nonstopmode - name: Upload PDF file - uses: actions/upload-artifact@v3 + id: upload-pdf + uses: actions/upload-artifact@v4 with: name: PDF - path: astro-notebook.pdf - - + path: astro-notebook-${{github.sha}}.pdf + - name: Send Telegram message + 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}} + Output pdf: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/${{ steps.upload-pdf.outputs.artifact-id }}