File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,14 @@ jobs:
1313 - name : Check out repository
1414 uses : actions/checkout@v3
1515
16+ # Debug: Check length of the base64 secret
17+ - name : Debug Check base64 secret length
18+ run : echo -n "${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}" | wc -c
19+
1620 # Decode the base64-encoded JSON secret into a file.
1721 - name : Create google-services.json
1822 run : |
19- echo "${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}" | base64 --decode > google-services.json
23+ printf "%s" "${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}" | base64 --decode > google-services.json
2024
2125 # Create the .env file from a secret (if needed)
2226 - name : Create .env file
2731 - name : Check google-services.json file size
2832 run : wc -c google-services.json
2933
30- # Debug: Validate JSON syntax (this will fail if the JSON is empty or invalid)
34+ # Debug: Validate JSON syntax (this will fail if the file is empty or invalid)
3135 - name : Validate google-services.json
3236 run : node -e "JSON.parse(require('fs').readFileSync('google-services.json','utf8'))"
3337
You can’t perform that action at this time.
0 commit comments