i am using Github Actions to automate releases of my app to Play Store. The deployment step uses r0adkll/upload-google-play@v1.
The step is configured as follows:
- name: Deploy to internal test track
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.PLAYSTORE_SERVICE_ACCOUNT }}
packageName: com.android.myapp
releaseFiles: app/build/outputs/bundle/release/*.aab
track: internal
The action fails with the error: Unexpected token e in JSON at position 0 which I assume is from the attempt to parse the service-account.json file saved in base64 format in secrets.
The original file contains valid json and ideally shouldn't contain any errors. What could be causing this behaviour?