Skip to content

Commit a9e098f

Browse files
authored
Update deploy.yml: vars in step name; ls $DEPLOY_DIR
1 parent 09abdc3 commit a9e098f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
- name: Checkout
2121
uses: actions/checkout@v3
2222

23-
- name: "Deploy to $APP_HOST $DEPLOY_DIR"
23+
- name: "Deploy to @${{ APP_HOST }} @${{ $DEPLOY_DIR }}"
2424
run: |
2525
eval $(ssh-agent)
2626
base64 -d <<< "${{ secrets.PT_SSH_BASE64 }}" | ssh-add -
2727
ssh-add -l
28-
ssh -o StrictHostKeyChecking=no -o GlobalKnownHostsFile=etc/known_hosts $SSH_USER@$APP_HOST "python3 --version; hostname; pwd; ls -l"
28+
ssh -o StrictHostKeyChecking=no -o GlobalKnownHostsFile=etc/known_hosts $SSH_USER@$APP_HOST "python3 --version; hostname; pwd; cd $DEPLOY_DIR; ls -l"
2929
ssh -o StrictHostKeyChecking=no -o GlobalKnownHostsFile=etc/known_hosts $SSH_USER@$APP_HOST "cd $DEPLOY_DIR; git checkout main && git pull --recurse-submodules"

0 commit comments

Comments
 (0)