Skip to content

Commit 814b1b1

Browse files
committed
fix: Update deployment workflow to switch user before executing commands
1 parent 1a86a16 commit 814b1b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
port: ${{ secrets.SSH_PORT }}
2222
key: ${{ secrets.SSH_SECRET_KEY }}
2323
script: |
24+
su ubuntu
2425
cd /home/ubuntu/apps/zyrohub
2526
pm2 stop ZyroHub
2627
git pull

0 commit comments

Comments
 (0)