Firebase-Distribution-Github-Action icon indicating copy to clipboard operation
Firebase-Distribution-Github-Action copied to clipboard

serviceCredentialsFile from secrets

Open jemshit opened this issue 3 years ago • 2 comments

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

jemshit avatar Jun 08 '22 06:06 jemshit

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 }}

jemshit avatar Jun 09 '22 13:06 jemshit

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.

wzieba avatar Jun 15 '22 06:06 wzieba