diff --git a/.github/workflows/backend_cd.yml b/.github/workflows/backend_cd.yml index fb7bcbd3..c642d866 100644 --- a/.github/workflows/backend_cd.yml +++ b/.github/workflows/backend_cd.yml @@ -122,6 +122,7 @@ jobs: healthCheckAAfterRollBack: name: 🙏 Server A Health Check After RollBack needs: rollBackA + if : ${{needs.rollBackA.result == 'success'}} defaults: run: working-directory: backend diff --git a/backend/src/main/java/develup/api/HealthApi.java b/backend/src/main/java/develup/api/HealthApi.java index 50d346bd..179e014b 100644 --- a/backend/src/main/java/develup/api/HealthApi.java +++ b/backend/src/main/java/develup/api/HealthApi.java @@ -10,8 +10,6 @@ public class HealthApi { @GetMapping("/health") public ResponseEntity> health() { - - return ResponseEntity.status(400).body(new ApiResponse<>("up")); } }