From e5c0702c34536bd993ea9ac6860de2c74d3aaedf Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Fri, 11 Nov 2022 21:12:47 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Switched=20jobs=20order?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-apk.yml | 34 ++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) 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 }}