[운영] 어드민 #1474
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "[운영] 어드민" | |
| on: | |
| schedule: | |
| - cron: "*/5 * * * *" | |
| workflow_dispatch: | |
| jobs: | |
| healthcheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: health check | |
| uses: jtalk/url-health-check-action@v5 | |
| with: | |
| url: ${{ secrets.BASE_URI_PROD }}/admin/health/readiness | |
| max-attempts: 3 | |
| retry-delay: 1s | |
| - name: action-slack | |
| if: failure() | |
| uses: 8398a7/action-slack@v3 | |
| with: | |
| status: custom | |
| fields: workflow | |
| custom_payload: | | |
| { | |
| attachments: [{ | |
| color: 'danger', | |
| text: `${process.env.AS_WORKFLOW}\n관리자 API 서버 Health Check가 실패하였습니다` | |
| }] | |
| } | |
| env: | |
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_PROD }} |