update workflow

This commit is contained in:
Zichao Lin 2023-11-25 20:01:26 +08:00
parent faa53ca2ed
commit 7712c77174
Signed by: earthjasonlin
GPG Key ID: 406D9913DE2E42FB

@ -20,9 +20,9 @@ jobs:
run: | run: |
expect - <<EOF expect - <<EOF
spawn ssh -p ${{ secrets.PORT }} ${{ 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 "?" expect "?"
send "yes" send "yes"
expect "password:"
send "${{ secrets.PASSWORD }}\r"
expect eof expect eof
EOF EOF