Decode base64 value and save it into a file. It might be useful in cases when we need to restore a file with credentials from Secrets.
Required Encoded value with base64.
Required Path for destination file. All non-existing directories will be created recursively.
- name: Restore firebase.json file
uses: kitek/decode-base64-into-file-action@1.0
with:
encoded-value: ${{ secrets.WEB_FIREBASE_JSON }}
destination-file: firebase.json