diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index dfcedd6..42a6178 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -48,7 +48,6 @@ jobs: key: ${{ secrets.AWS_SSH_KEY }} port: 22 script: | - sudo su - cd /root/DDocker_BE - git pull origin main - pm2 reload DDocker_API + sudo su -c 'cd /root/DDocker_BE' + sudo su -c 'git pull origin main' + sudo su -c 'pm2 reload DDocker_API'