update workflow
Some checks failed
Deploy / deploy (push) Has been cancelled

This commit is contained in:
Zichao Lin 2023-11-25 19:50:00 +08:00
parent 6a821d2b47
commit 390e8c83d4
Signed by: earthjasonlin
GPG Key ID: 406D9913DE2E42FB

@ -13,13 +13,13 @@ jobs:
steps:
- name: Install expect
run: |
sudo apt-get update
sudo apt-get install -y expect
apt-get update
apt-get install -y expect
- name: Deploy
run: |
expect - <<EOF
spawn ssh ${{ secrets.USERNAME }}@${{ secrets.HOST }} "cd ${{ secrets.PATH }} && git pull"
spawn ssh -p ${{ secrets.PORT }} ${{ secrets.USERNAME }}@${{ secrets.HOST }} "cd ${{ secrets.PATH }} && git pull"
expect "password:"
send "${{ secrets.PASSWORD }}\r"
expect eof