mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
Merge pull request #44 from nikhilbadyal/virus-total-scan
👷 Ask if user want VT Scan
This commit is contained in:
@@ -7,10 +7,15 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
SKIP_GITHUB_UPLOAD:
|
SKIP_GITHUB_UPLOAD:
|
||||||
description: 'Should upload to GitHub'
|
description: 'Upload to GitHub'
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
|
SKIP_VIRUSTOTAL_SCAN:
|
||||||
|
description: 'Scan apks with VirusTotal'
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.head_ref || github.run_id }}
|
group: ${{ github.head_ref || github.run_id }}
|
||||||
@@ -77,9 +82,16 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sleep 10
|
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:
|
upload-to-telegram:
|
||||||
needs: [ build-apk ]
|
needs: [ build-apk ]
|
||||||
|
|
||||||
uses: ./.github/workflows/telegram-uploader.yml
|
uses: ./.github/workflows/telegram-uploader.yml
|
||||||
secrets:
|
secrets:
|
||||||
TELEGRAM_API_ID: ${{ secrets.TELEGRAM_API_ID }}
|
TELEGRAM_API_ID: ${{ secrets.TELEGRAM_API_ID }}
|
||||||
@@ -87,4 +99,3 @@ jobs:
|
|||||||
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
||||||
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
|
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
|
||||||
STICKER_ID: ${{ secrets.STICKER_ID }}
|
STICKER_ID: ${{ secrets.STICKER_ID }}
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,13 @@
|
|||||||
name: VirusTotal Scan
|
name: VirusTotal Scan
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_run:
|
|
||||||
workflows: [ "Build Revanced APK" ]
|
|
||||||
types:
|
|
||||||
- completed
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
workflow_call:
|
||||||
|
secrets:
|
||||||
|
VT_API_KEY:
|
||||||
|
required: true
|
||||||
|
GH_TOKEN:
|
||||||
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
virustotal:
|
virustotal:
|
||||||
|
|||||||
Reference in New Issue
Block a user