Inline favicon as data URI so it works on Railway #37
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: Production Health Check | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| health-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Wait for deploy | |
| run: sleep 120 | |
| - name: Check copilotkit-docs | |
| run: | | |
| STATUS=$(curl -sf https://mcp.copilotkit.ai/health | jq -r '.status') | |
| echo "copilotkit-docs: $STATUS" | |
| [ "$STATUS" = "ok" ] || exit 1 | |
| - name: Check pathfinder-docs | |
| run: | | |
| STATUS=$(curl -sf https://mcp.pathfinder.copilotkit.dev/health | jq -r '.status') | |
| echo "pathfinder-docs: $STATUS" | |
| [ "$STATUS" = "ok" ] || exit 1 | |
| - name: Notify Slack — success | |
| if: success() | |
| run: | | |
| if [ -n "$SLACK_WEBHOOK" ]; then | |
| curl -sf -X POST "$SLACK_WEBHOOK" \ | |
| -H 'Content-Type: application/json' \ | |
| -d '{"text":"Pathfinder production deploy healthy — both services OK"}' || true | |
| fi | |
| env: | |
| SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
| - name: Notify Slack — failure | |
| if: failure() | |
| run: | | |
| if [ -n "$SLACK_WEBHOOK" ]; then | |
| curl -s -X POST "$SLACK_WEBHOOK" \ | |
| -H 'Content-Type: application/json' \ | |
| -d "{\"text\":\"Pathfinder production health check FAILED after deploy\n<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View run>\"}" || true | |
| fi | |
| env: | |
| SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} |