From 655d35142e50b7358786cc708fb942767c4884ac Mon Sep 17 00:00:00 2001 From: Chengming-Li <115936688+Chengming-Li@users.noreply.github.com> Date: Tue, 9 Apr 2024 20:17:40 -0700 Subject: [PATCH] Update cd-branch.yml --- .github/workflows/cd-branch.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cd-branch.yml b/.github/workflows/cd-branch.yml index a078ae805..875a3ccf8 100644 --- a/.github/workflows/cd-branch.yml +++ b/.github/workflows/cd-branch.yml @@ -10,10 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - - name: Setup SSH Key - uses: webfactory/ssh-agent@v0.9.0 - with: - ssh-private-key: ${{ secrets.SSH_KEY }} - - name: SSH into Hozer - run: | - ssh root@hozer-51.ocf.berkeley.edu "cd /berkeleytime" + - name: Install sshpass + run: sudo apt-get install -y sshpass + - name: SSH into server + run: sshpass -p ${{ secrets.SSH_PASSWORD }} ssh root@hozer-51.ocf.berkeley.edu 'echo hello'