From c705f8d3f452ba57a74ad565db661e020c31eab6 Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Sun, 2 Oct 2022 23:38:00 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Added=20Telegram=20Upload?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-apk.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index a3061a7..619783f 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -3,6 +3,7 @@ name: Build Revanced APK env: DOCKER_BUILDKIT: 1 COMPOSE_DOCKER_CLI_BUILD: 1 + HAVE_TELEGRAM_API_ID: ${{ secrets.TELEGRAM_API_ID != '' }} on: workflow_dispatch: workflow_call: @@ -50,3 +51,12 @@ jobs: - name: Sleep for 10 seconds run: | sleep 10 + + - name: Upload to Telegram + if: ${{ env.HAVE_TELEGRAM_API_ID == 'true' }} + uses: nikhilbadyal/ghaction-telegram-uploader@main + with: + API_ID: ${{ secrets.TELEGRAM_API_ID }} + API_HASH: ${{ secrets.TELEGRAM_API_HASH }} + BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} + CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}