Skip to content

Commit

Permalink
fix: proper special char handling when making secret files
Browse files Browse the repository at this point in the history
  • Loading branch information
Lincoln Lee authored and Lincoln Lee committed Jul 21, 2024
1 parent 0a56985 commit 1a34aa4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ jobs:
run: sudo cp dinubot.service /etc/systemd/system/dinubot.service

- name: Create .env file from secret
run: echo "${{ secrets.ENV_FILE }}" > .env
run: echo '${{ secrets.ENV_FILE }}' > .env

- name: Create service_account.json file from secret
run: echo "${{ secrets.SERVICE_ACCOUNT_JSON }}" > service_account.json
run: echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_account.json

- name: Reload systemd daemon
run: sudo systemctl daemon-reload
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/refresh_secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
runs-on: self-hosted
steps:
- name: Create .env file from secret
run: echo "${{ secrets.ENV_FILE }}" > .env
run: echo '${{ secrets.ENV_FILE }}' > .env

- name: Create service_account.json file from secret
run: echo "${{ secrets.SERVICE_ACCOUNT_JSON }}" > service_account.json
run: echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_account.json

- name: Restart Dinubot service
run: |
Expand Down

0 comments on commit 1a34aa4

Please sign in to comment.