From 5559babbcd9ca45279af09e928e3eeeaec0ebe5e Mon Sep 17 00:00:00 2001 From: MohitMaliFtechiz Date: Thu, 31 Oct 2024 19:13:44 +0530 Subject: [PATCH] Since secrets are store in caps letters so we have to make the tag in caps letter. --- .github/workflows/cd.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 3e63cc5..0a11046 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -37,7 +37,7 @@ 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: Preparing signing material @@ -46,9 +46,9 @@ jobs: playstore_json: ${{ secrets.PLAYSTORE_JSON }} run: | echo "$keystore" | base64 -d > kiwix-android/kiwix-android.keystore - if [ -n "${{ secrets[env.non_kiwix_organization_tag] }}" ]; then + if [ -n "${{ secrets[env.NON_KIWIX_ORGANIZATION_TAG] }}" ]; then echo "It is non-kiwix organization json file" - echo "${{ secrets[env.non_kiwix_organization_tag] }}" > kiwix-android/playstore.json + echo "${{ secrets[env.NON_KIWIX_ORGANIZATION_TAG] }}" > kiwix-android/playstore.json else echo "It is kiwix organization json file" echo "$playstore_json" > kiwix-android/playstore.json