From 2fd8f3da0b1c3eae02f3a78bda5673199e21f47a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9E=84=EC=88=98=EB=B9=88?= Date: Thu, 19 Sep 2024 18:57:01 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A1=A4=EB=B0=B1=20=EC=84=B1=EA=B3=B5=20?= =?UTF-8?q?=EC=8B=9C=20=EC=95=8C=EB=A6=BC=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/backend_cd.yml | 2 +- backend/src/main/java/develup/api/HealthApi.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/backend_cd.yml b/.github/workflows/backend_cd.yml index fb04c449..7736dd67 100644 --- a/.github/workflows/backend_cd.yml +++ b/.github/workflows/backend_cd.yml @@ -235,7 +235,7 @@ jobs: runs-on: ubuntu-latest needs: - healthCheckAAfterRollBack - if: ${{needs.healthCheckAAfterRollBack.result == 'success'}} + if: ${{failure() && needs.healthCheckAAfterRollBack.result == 'success'}} steps: - name: Extract Commit Title run: | diff --git a/backend/src/main/java/develup/api/HealthApi.java b/backend/src/main/java/develup/api/HealthApi.java index 179e014b..50d346bd 100644 --- a/backend/src/main/java/develup/api/HealthApi.java +++ b/backend/src/main/java/develup/api/HealthApi.java @@ -10,6 +10,8 @@ public class HealthApi { @GetMapping("/health") public ResponseEntity> health() { + + return ResponseEntity.status(400).body(new ApiResponse<>("up")); } }