[개발] 사장님 서비스 #1817
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_DEV }}/boss/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_DEV }} |