From e4d0a1082d98b82bacc0c73672d80034145a7a65 Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Sat, 13 Aug 2022 20:30:12 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Added=20logger=20for=20custom=20env?= =?UTF-8?q?=20builds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-apk.yml | 4 ++-- main.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index 72077a4..946e44e 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -31,11 +31,11 @@ jobs: - name: Update Env for custom build run: | - echo ${{ secrets.ENVS }} >> .env + echo "${{ secrets.ENVS }}" >> .env - name: Build APK run: | - cat .env + cat .env && docker-compose up - name: Upload Build Artifact(youtube) diff --git a/main.py b/main.py index 456209c..8e8bb9c 100644 --- a/main.py +++ b/main.py @@ -300,6 +300,7 @@ def main() -> None: app_patches, version = patches.get(app=app) if os.getenv(f"{app}_VERSION".upper()): version = os.getenv(f"{app}_VERSION".upper()) + logger.debug(f"Picked {app} version {version} from env.") if app == "reddit" or app == "twitter": downloader.apkmirror_reddit_twitter(app) else: