Skip to content

Commit

Permalink
Since secrets are store in caps letters so we have to make the tag in…
Browse files Browse the repository at this point in the history
… caps letter.
  • Loading branch information
MohitMaliDeveloper committed Oct 31, 2024
1 parent 19b8b80 commit 5559bab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5559bab

Please sign in to comment.