diff --git a/.github/workflows/springboot-on-push.yaml b/.github/workflows/springboot-on-push.yaml index 5f0f40e9..5da768ed 100644 --- a/.github/workflows/springboot-on-push.yaml +++ b/.github/workflows/springboot-on-push.yaml @@ -56,7 +56,7 @@ jobs: - name: Execute remote commands run: | ssh -v ${{ secrets.SPRINGBOOT_USERNAME }}@${{ secrets.SPRINGBOOT_HOST_DNS }} \ - "kill -9 \$(pgrep -f springboot-0.0.1-SNAPSHOT.jar)" + "kill -9 \$(pgrep -f springboot-0.0.1-SNAPSHOT.jar) || true" ssh -v ${{ secrets.SPRINGBOOT_USERNAME }}@${{ secrets.SPRINGBOOT_HOST_DNS }} \ "cd ${{ secrets.SPRINGBOOT_ROOT_DIR }} && pwd && \ nohup /usr/bin/java -jar ${{ secrets.SPRINGBOOT_TARGET_DIR }}/*.jar & \