👷 Reuse workflows

This commit is contained in:
Nikhil Badyal
2022-10-15 14:43:20 +05:30
parent 7e80b3007d
commit d792cab58f
8 changed files with 23 additions and 99 deletions
+8 -3
View File
@@ -67,16 +67,20 @@ jobs:
sleep 10
virustotal-scan:
if: ${{ inputs.SKIP_VIRUSTOTAL_SCAN }}
needs: [ upload-to-github ]
uses: ./.github/workflows/virus-total-scan.yml
uses: nikhilbadyal/ghactions/.github/workflows/virustotal-scan.yml@main
with:
FILES: |
.apk$
request_rate: 4
if: ${{ inputs.SKIP_VIRUSTOTAL_SCAN }}
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
uses: nikhilbadyal/ghactions/.github/workflows/telegram-uploader.yml@main
secrets:
TELEGRAM_API_ID: ${{ secrets.TELEGRAM_API_ID }}
TELEGRAM_API_HASH: ${{ secrets.TELEGRAM_API_HASH }}
@@ -85,6 +89,7 @@ jobs:
STICKER_ID: ${{ secrets.STICKER_ID }}
CHANGELOG_GITHUB_REPOSITORY: ${{ secrets.CHANGELOG_GITHUB_REPOSITORY }}
cleanup:
name: GitHub Cleanup
if: ${{ inputs.CLEANUP }}