wzieba / Firebase-Distribution-Github-Action

This action uploads artifacts (.apk or .ipa) to Firebase App Distribution.
MIT License
362 stars 76 forks source link

serviceCredentialsFile from secrets #72

Closed jemshit closed 1 year ago

jemshit commented 2 years ago

Hi, could you guys provide a way to use serviceAccount from secrets instead of file? As an example this action offers it

jemshit commented 2 years ago

For now this can be used:

- name: Decode AppDistribution ServiceAccount to JSON file
    id: decode-appdistribution-serviceaccount
    uses: timheuer/base64-to-file@master
    with:
      fileName: 'service-account.json'
      fileDir: './app_distribution/'
      encodedString: ${{ secrets.SERVICE_ACC_FIREBASE }}

then

serviceCredentialsFile: ${{ steps.decode-appdistribution-serviceaccount.outputs.filePath }}

wzieba commented 2 years ago

Nice idea, thanks! I'm adding this to the backlog but if anyone is willing to work on that, please feel free to provide a PR.