Update zizmorcore/zizmor-action action to v0.6.0 (#140) #115
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] | |
| permissions: {} | |
| jobs: | |
| health-check: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| 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 — failure only | |
| if: failure() | |
| run: | | |
| if [ -n "$SLACK_WEBHOOK" ]; then | |
| payload=$(jq -nc --arg repo "$GH_REPOSITORY" --arg run "$GH_RUN_ID" \ | |
| '{text: "Pathfinder production health check FAILED after deploy\n<https://github.com/\($repo)/actions/runs/\($run)|View run>"}') | |
| curl -s -X POST "$SLACK_WEBHOOK" \ | |
| -H 'Content-Type: application/json' \ | |
| -d "$payload" || true | |
| fi | |
| env: | |
| SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_OSS_ALERTS }} | |
| GH_REPOSITORY: ${{ github.repository }} | |
| GH_RUN_ID: ${{ github.run_id }} |