From a85640eee1e5c16bf60a6a79fe5055576b6d62bf Mon Sep 17 00:00:00 2001 From: Wooyeol Lee Date: Tue, 28 Nov 2023 21:55:01 +0900 Subject: [PATCH] fix error --- .github/workflows/springboot-on-push.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 & \