Skip to content

Commit

Permalink
Improved the Determine playStore.json file job.
Browse files Browse the repository at this point in the history
  • Loading branch information
MohitMaliDeveloper committed Oct 31, 2024
1 parent d530135 commit e2fea87
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e2fea87

Please sign in to comment.