update workflow
Some checks failed
Deploy / deploy (push) Failing after 10s
Some checks failed
Deploy / deploy (push) Failing after 10s
This commit is contained in:
parent
086079a757
commit
6a821d2b47
10
.github/workflows/deploy.yml
vendored
10
.github/workflows/deploy.yml
vendored
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user