File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff 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 : |
You can’t perform that action at this time.
0 commit comments