From 5fca0c22fb7ba624103a49808b1d80ec93bbb7d8 Mon Sep 17 00:00:00 2001 From: donneypr Date: Wed, 18 Dec 2024 21:40:48 -0500 Subject: [PATCH] fixed issue --- .github/workflows/deploy.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 742071f..3a37bac 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -24,13 +24,11 @@ jobs: echo -e "Host github.com\n\tHostName github.com\n\tIdentityFile /home/ubuntu/.ssh/temp_ssh/id_ed25519\n\tIdentitiesOnly yes" > /home/ubuntu/.ssh/config chmod 600 /home/ubuntu/.ssh/config echo "Pulling latest code:" - cd /home/ubuntu/xtwitter_bot - git pull origin main || echo "Git pull failed" + GIT_SSH_COMMAND="ssh -i /home/ubuntu/.ssh/temp_ssh/id_ed25519 -o IdentitiesOnly=yes" git pull origin main || echo "Git pull failed" echo "Activating virtual environment:" source venv/bin/activate echo "Restarting bot:" screen -ls | grep "phil_bot" && screen -S phil_bot -X quit || true screen -dmS phil_bot venv/bin/python3 xtwitter_bot.py > bot.log 2>&1 echo "Active screen sessions:" - screen -ls - + screen -ls \ No newline at end of file