Skip to content

Commit 00581e8

Browse files
Debugging again...
1 parent 9ee28b9 commit 00581e8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/deploy-docker.yml

+6-2
Original file line numberDiff line numberDiff 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
@@ -27,7 +31,7 @@ jobs:
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

0 commit comments

Comments
 (0)