From e2fea877f51669afcf932fc5b9d77ff9150e3ab9 Mon Sep 17 00:00:00 2001 From: MohitMaliFtechiz Date: Thu, 31 Oct 2024 18:05:12 +0530 Subject: [PATCH] Improved the Determine playStore.json file job. --- .github/workflows/cd.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 36d9ed8..c80a3d5 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -37,12 +37,17 @@ jobs: - name: Set non-kiwix organization tag run: | - non_kiwix_organization_tag="PLAYSTORE_JSON_${TAG}" + non_kiwix_organization_tag="PLAYSTORE_JSON_${TAG^^}" echo "NON_KIWIX_ORGANIZATION_TAG=${non_kiwix_organization_tag}" >> $GITHUB_ENV - name: Determine playstore.json file run: | - echo "CUSTOM_PLAYSTORE_JSON=${{ secrets[env.NON_KIWIX_ORGANIZATION_TAG] || secrets.PLAYSTORE_JSON }}" >> $GITHUB_ENV + SECRET_VALUE="${{ secrets[env.NON_KIWIX_ORGANIZATION_TAG] }}" + if [ -n "$SECRET_VALUE" ]; then + echo "CUSTOM_PLAYSTORE_JSON=${{ secrets[env.NON_KIWIX_ORGANIZATION_TAG] }}" >> $GITHUB_ENV + else + echo "CUSTOM_PLAYSTORE_JSON=${{ secrets.PLAYSTORE_JSON }}" >> $GITHUB_ENV + fi - name: Preparing signing material env: