diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index be7f8a1..c0d1e8a 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -81,7 +81,7 @@ jobs: sleep 10 virustotal-scan: - needs: [upload-to-github] + needs: [ upload-to-github ] uses: nikhilbadyal/ghactions/.github/workflows/virustotal-scan.yml@main with: FILES: | @@ -92,22 +92,8 @@ jobs: VT_API_KEY: ${{ secrets.VT_API_KEY }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - upload-to-telegram: - needs: [upload-to-github] - 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 }} - TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} - TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} - STICKER_ID: ${{ secrets.STICKER_ID }} - CHANGELOG_GITHUB_REPOSITORY: ${{ secrets.CHANGELOG_GITHUB_REPOSITORY }} - SEND_STICKER: ${{ secrets.SEND_STICKER }} - MESSAGE: ${{ secrets.MESSAGE_NON_ROOT }} - upload-to-telegram-root: - needs: [upload-to-telegram] + needs: [ upload-to-github ] uses: nikhilbadyal/ghactions/.github/workflows/telegram-uploader.yml@main if: github.repository == 'nikhilbadyal/docker-py-revanced' secrets: @@ -122,10 +108,24 @@ jobs: SEND_MESSAGE: ${{ secrets.SEND_MESSAGE }} MESSAGE: ${{ secrets.MESSAGE_ROOT }} + upload-to-telegram: + needs: [ upload-to-telegram-root ] + 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 }} + TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} + TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} + STICKER_ID: ${{ secrets.STICKER_ID }} + CHANGELOG_GITHUB_REPOSITORY: ${{ secrets.CHANGELOG_GITHUB_REPOSITORY }} + SEND_STICKER: ${{ secrets.SEND_STICKER }} + MESSAGE: ${{ secrets.MESSAGE_NON_ROOT }} + cleanup: name: GitHub Cleanup if: inputs.CLEANUP - needs: [upload-to-telegram] + needs: [ upload-to-telegram ] uses: ./.github/workflows/github-cleanup.yml secrets: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}