👷 Ask if user want VT Scan

This commit is contained in:
Nikhil Badyal
2022-10-13 22:05:26 +05:30
parent 7a463f0a7f
commit cffe4009f9
2 changed files with 20 additions and 7 deletions
+14 -3
View File
@@ -7,10 +7,15 @@ on:
workflow_dispatch:
inputs:
SKIP_GITHUB_UPLOAD:
description: 'Should upload to GitHub'
description: 'Upload to GitHub'
required: false
type: boolean
default: true
SKIP_VIRUSTOTAL_SCAN:
description: 'Scan apks with VirusTotal'
required: false
type: boolean
default: false
concurrency:
group: ${{ github.head_ref || github.run_id }}
@@ -77,9 +82,16 @@ jobs:
run: |
sleep 10
virustotal-scan:
if: ${{ inputs.SKIP_VIRUSTOTAL_SCAN }}
needs: [ upload-to-github ]
uses: ./.github/workflows/virus-total-scan.yml
secrets:
VT_API_KEY: ${{ secrets.VT_API_KEY }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
upload-to-telegram:
needs: [ build-apk ]
uses: ./.github/workflows/telegram-uploader.yml
secrets:
TELEGRAM_API_ID: ${{ secrets.TELEGRAM_API_ID }}
@@ -87,4 +99,3 @@ jobs:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
STICKER_ID: ${{ secrets.STICKER_ID }}
+6 -4
View File
@@ -1,11 +1,13 @@
name: VirusTotal Scan
on:
workflow_run:
workflows: [ "Build Revanced APK" ]
types:
- completed
workflow_dispatch:
workflow_call:
secrets:
VT_API_KEY:
required: true
GH_TOKEN:
required: true
jobs:
virustotal: