Skip to content

Commit d9fcacf

Browse files
hendisantikaclaude
andcommitted
🐛 fix: use scp to write groups.json preserving double quotes
The ssh echo command was stripping double quotes from the JSON. Write to a temp file locally and scp it to the server instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4ec4fe9 commit d9fcacf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/deploy-dev.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ jobs:
6262
6363
- name: Write groups.json to server
6464
run: |
65-
ssh deployer@103.31.204.189 "echo '${{ vars.DEV_GROUPS_JSON }}' > ~/jvmid-bot/groups.json"
65+
echo '${{ vars.DEV_GROUPS_JSON }}' > /tmp/groups.json
66+
scp /tmp/groups.json deployer@103.31.204.189:~/jvmid-bot/groups.json
67+
rm /tmp/groups.json
6668
6769
- name: Copy docker-compose.prod.yml to server
6870
run: |

0 commit comments

Comments
 (0)