Skip to content

Commit a8dd5e0

Browse files
Google services json formatting & newline issue fix.
1 parent 8ad14a1 commit a8dd5e0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/deploy-docker.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ jobs:
1515
- name: Check out repository
1616
uses: actions/checkout@v3
1717

18-
# Create the secret file "google-services.json" from the repo secret
1918
- name: Create google-services.json
20-
run: echo "${{ secrets.GOOGLE_SERVICES_JSON }}" > google-services.json
19+
run: |
20+
# Use printf to preserve the formatting and newlines
21+
printf "%s" "${{ secrets.GOOGLE_SERVICES_JSON }}" > google-services.json
2122
22-
# Create a .env file from a repo secret (if needed)
2323
- name: Create .env file
24-
run: echo "${{ secrets.ENV_FILE_CONTENT }}" > .env
24+
run: |
25+
# Similarly, create the .env file with proper formatting
26+
printf "%s" "${{ secrets.ENV_FILE_CONTENT }}" > .env
2527
2628
- name: Build Docker image
2729
run: |

0 commit comments

Comments
 (0)