Skip to content

Commit 7c396b7

Browse files
committed
Add git checkout
1 parent b7ededc commit 7c396b7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,12 @@ jobs:
5858
host: ${{ secrets.SERVER_IP }}
5959
username: ${{ secrets.SERVER_USER }}
6060
key: ${{ secrets.SSH_PRIVATE_KEY }}
61+
passphrase: ${{ secrets.SSH_PASSPHRASE }}
6162
script: |
6263
cd /srv/apps/lms.musfiqdehan.com
64+
65+
# Checkout to main branch
66+
git checkout -f main
6367
6468
# Pull latest code
6569
git pull origin main

0 commit comments

Comments
 (0)