update workflow
Some checks failed
Deploy / deploy (push) Has been cancelled
Some checks failed
Deploy / deploy (push) Has been cancelled
This commit is contained in:
parent
6a821d2b47
commit
390e8c83d4
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user