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:
15
15
- name : Check out repository
16
16
uses : actions/checkout@v3
17
17
18
- # Create the secret file "google-services.json" from the repo secret
19
18
- 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
21
22
22
- # Create a .env file from a repo secret (if needed)
23
23
- 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
25
27
26
28
- name : Build Docker image
27
29
run : |
You can’t perform that action at this time.
0 commit comments