update workflow
Some checks failed
Deploy / deploy (push) Failing after 10s

This commit is contained in:
Zichao Lin 2023-11-25 19:47:26 +08:00
parent 086079a757
commit 6a821d2b47
Signed by: earthjasonlin
GPG Key ID: 406D9913DE2E42FB

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