File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,14 @@ jobs:
13
13
- name : Check out repository
14
14
uses : actions/checkout@v3
15
15
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
+
16
20
# Decode the base64-encoded JSON secret into a file.
17
21
- name : Create google-services.json
18
22
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
20
24
21
25
# Create the .env file from a secret (if needed)
22
26
- name : Create .env file
27
31
- name : Check google-services.json file size
28
32
run : wc -c google-services.json
29
33
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)
31
35
- name : Validate google-services.json
32
36
run : node -e "JSON.parse(require('fs').readFileSync('google-services.json','utf8'))"
33
37
You can’t perform that action at this time.
0 commit comments