From 201599f06489d1754ec5eee6c45e3bf8cb868e4c Mon Sep 17 00:00:00 2001 From: Yurii Dubinka Date: Sat, 22 Jan 2022 15:04:28 +0200 Subject: [PATCH] #26: Check 'External Telegram Notifications' --- .github/workflows/main.yaml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index f258574..3826071 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -5,13 +5,13 @@ name: Telegram # check here https://developer.github.com/webhooks/ on: issue_comment: - types: created + types: [created] issues: types: [opened, edited, pinned, closed, reopened, assigned, labeled] pull_request: types: [opened, closed, edited, ready_for_review, review_requested, reopened] pull_request_review_comment: - types: created + types: [created] push: jobs: @@ -20,12 +20,11 @@ jobs: runs-on: ubuntu-latest steps: - - name: Notifier - uses: GokulDas027/TelegramBridge@master - if: always() + - name: Send notifications + id: send_notifications + uses: danilat/externalized-telegram-notifications-action@master with: - chat: ${{ secrets.TELEGRAM_CHAT }} + to: ${{ secrets.TELEGRAM_ID_OR_CHANNEL }} token: ${{ secrets.TELEGRAM_TOKEN }} - status: ${{ job.status }} # don't change - event: ${{ github.event_name }} # don't change - actor: ${{ github.actor }} # don't change \ No newline at end of file + content-url: ${{ secrets.CONTENT_URL }} + parse_mode: html \ No newline at end of file