From ccf2cdd2768d0009331ffc91483ee4edb0c40568 Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Sat, 15 Oct 2022 18:57:19 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Telegram=20Check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-apk.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index da3fcf7..02d88a5 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -6,18 +6,23 @@ env: on: workflow_dispatch: inputs: - SKIP_GITHUB_UPLOAD: + GITHUB_UPLOAD: description: 'Upload to GitHub' required: false type: boolean default: true - SKIP_VIRUSTOTAL_SCAN: + TELEGRAM_UPLOAD: + description: 'Upload to Telegram' + required: false + type: boolean + default: false + VIRUSTOTAL_SCAN: description: 'Scan apks with VirusTotal' required: false type: boolean default: false CLEANUP: - description: 'Cleanup GitHub' + description: 'Clear GitHub(Useful if Telegram upload is enabled)' required: false type: boolean default: false @@ -36,7 +41,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 needs: build-apk - if: ${{ inputs.SKIP_GITHUB_UPLOAD }} + if: ${{ inputs.GITHUB_UPLOAD }} steps: - name: Download Already Built APKs @@ -73,7 +78,7 @@ jobs: FILES: | .apk$ request_rate: 4 - if: ${{ inputs.SKIP_VIRUSTOTAL_SCAN }} + if: ${{ inputs.VIRUSTOTAL_SCAN }} secrets: VT_API_KEY: ${{ secrets.VT_API_KEY }} GH_TOKEN: ${{ secrets.GH_TOKEN }} @@ -81,6 +86,7 @@ jobs: upload-to-telegram: needs: [ build-apk ] uses: nikhilbadyal/ghactions/.github/workflows/telegram-uploader.yml@main + if: ${{ inputs.TELEGRAM_UPLOAD }} secrets: TELEGRAM_API_ID: ${{ secrets.TELEGRAM_API_ID }} TELEGRAM_API_HASH: ${{ secrets.TELEGRAM_API_HASH }}