From b04e8e7f60ec61f679db04f3b2411eab67940c04 Mon Sep 17 00:00:00 2001 From: Zane Schepke Date: Fri, 3 May 2024 22:38:37 -0400 Subject: [PATCH] Update issue-workflow.yml --- .github/workflows/issue-workflow.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/issue-workflow.yml b/.github/workflows/issue-workflow.yml index 4f305ff..e0ed248 100644 --- a/.github/workflows/issue-workflow.yml +++ b/.github/workflows/issue-workflow.yml @@ -11,11 +11,9 @@ jobs: 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 }} updated an issue: - ${{ github.event.issue.state }}: ${{ github.event.issue.number }} ${{ github.event.issue.title }} + - name: Send Telegram Message + run: | + msg_text='${{ github.actor }} updated an issue: + status: ${{ github.event.issue.state }} - #${{ github.event.issue.number }} ${{ github.event.issue.title }}' + curl -s -X POST 'https://api.telegram.org/bot${{ secrets.TELEGRAM_TOKEN }}/sendMessage' \ + -d "chat_id=${{ secrets.TELEGRAM_TO }}&text=${msg_text}&reply_to_message_id=${{ secrets.TELEGRAM_TOPIC }}"