From 77ae1269ef06027b4471c17f5ff84146090146a0 Mon Sep 17 00:00:00 2001 From: MohitMaliFtechiz Date: Thu, 31 Oct 2024 18:45:44 +0530 Subject: [PATCH] Improved the CD to get the secret. --- .github/workflows/cd.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index f7f8047..cd20bc6 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -46,9 +46,8 @@ jobs: playstore_json: ${{ secrets.PLAYSTORE_JSON }} run: | echo "$keystore" | base64 -d > kiwix-android/kiwix-android.keystore - non_kiwix_playstore_json=${{ secrets[env.NON_KIWIX_ORGANIZATION_TAG] || '' }} - if [ -n "$non_kiwix_playstore_json" ]; then - echo "$non_kiwix_playstore_json" > kiwix-android/playstore.json + if [ -n "${{ secrets[env.non_kiwix_organization_tag] }}" ]; then + echo "${{ secrets[env.non_kiwix_organization_tag] }}" > kiwix-android/playstore.json else echo "$playstore_json" > kiwix-android/playstore.json fi