name: 'Inflate Secrets' description: 'Inflates the secret values into the appropriate files' inputs: keystore: description: 'The keystore to inflate' required: true google-services: description: 'The google-services.json to inflate' required: true playstore-creds: description: 'The playstore credentials to inflate' required: true firebase-creds: description: 'The firebase credentials to inflate' required: true runs: using: 'composite' steps: - name: Mock debug google-services.json shell: bash run: | cp .github/mock-google-services.json mifospay-android/google-services.json - name: Inflate release_keystore.keystore shell: bash env: KEYSTORE: ${{ inputs.keystore }} run: | echo $KEYSTORE | base64 --decode > mifospay-android/release_keystore.keystore - name: Inflate google-services.json shell: bash env: GOOGLE_SERVICES: ${{ inputs.google-services }} run: | echo $GOOGLE_SERVICES > mifospay-android/google-services.json - name: Inflate playStorePublishServiceCredentialsFile.json shell: bash env: CREDS: ${{ inputs.playstore-creds }} run: | # Create the file with appropriate permissions touch mifospay-android/playStorePublishServiceCredentialsFile.json echo $CREDS > mifospay-android/playStorePublishServiceCredentialsFile.json - name: Inflate firebaseAppDistributionServiceCredentialsFile.json shell: bash env: FIREBASE_CREDS: ${{ inputs.firebase-creds }} run: | echo $FIREBASE_CREDS > mifospay-android/firebaseAppDistributionServiceCredentialsFile.json