Skip to content

Commit

Permalink
롤백 성공 시 알림 테스트 2
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjoon committed Sep 19, 2024
1 parent c493c52 commit 2fd8f3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/backend_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 2 additions & 0 deletions backend/src/main/java/develup/api/HealthApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ public class HealthApi {

@GetMapping("/health")
public ResponseEntity<ApiResponse<String>> health() {


return ResponseEntity.status(400).body(new ApiResponse<>("up"));
}
}

0 comments on commit 2fd8f3d

Please sign in to comment.