Skip to content

Commit

Permalink
Update pull.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AyeZeeBB authored Feb 2, 2024
1 parent bf8075d commit 09d2d7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
ssh-keyscan -H ${{ secrets.SSH_HOST }} > ~/.ssh/known_hosts
- name: connect and pull
run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "cd ${{ secrets.WORK_DIR }} && git fetch --all && git reset --hard && git pull && exit"
run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "cd ${{ secrets.WORK_DIR }} && git fetch --all && git reset --hard && git checkout ${{ secrets.MAIN_BRANCH }} && git pull && exit"
- name: stop and build
run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "cd ${{ secrets.WORK_DIR }} && systemctl stop r5rnode.service && npm run build && exit"
- name: start service
Expand Down

0 comments on commit 09d2d7b

Please sign in to comment.