Skip to content

Commit 4dd2346

Browse files
authored
fix(actions): do git hard reset for before pull
Signed-off-by: Lala Sabathil <[email protected]>
1 parent a87d806 commit 4dd2346

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/documentation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ jobs:
110110
ssh-private-key: ${{ secrets.AITSYS_SSH }}
111111
- name: Publish on server
112112
continue-on-error: true
113-
run: ssh -o StrictHostKeyChecking=no -T root@${{ secrets.SSH_HOST_S }} -f 'cd /var/www/dcsdocs && git pull -f && service apache2 restart'
113+
run: ssh -o StrictHostKeyChecking=no -T root@${{ secrets.SSH_HOST_S }} -f 'cd /var/www/dcsdocs && git reset --hard origin/main && git pull -f && service apache2 restart'

0 commit comments

Comments
 (0)