Skip to content

Add cross-navigation footer (#49) #38

Add cross-navigation footer (#49)

Add cross-navigation footer (#49) #38

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 }}