We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a87d806 commit 4dd2346Copy full SHA for 4dd2346
.github/workflows/documentation.yml
@@ -110,4 +110,4 @@ jobs:
110
ssh-private-key: ${{ secrets.AITSYS_SSH }}
111
- name: Publish on server
112
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'
+ 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