-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (47 loc) · 1.69 KB
/
Copy pathping-mcp-liveness.yml
File metadata and controls
56 lines (47 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Ping MCP liveness
# Manual-only until the MCP surface is rebuilt and HOSTUP-owned. Scheduled
# GitHub runs create data PR churn for a side-channel that is no longer an
# active production freshness source.
on:
workflow_dispatch:
permissions:
contents: write
pull-requests: write
concurrency:
group: mcp-liveness-ping
cancel-in-progress: false
jobs:
ping:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0
- name: Setup Node 22
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: "22"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Ping MCP servers + record uptime
env:
REDIS_URL: ${{ secrets.REDIS_URL }}
run: node scripts/ping-mcp-liveness.mjs
- name: Compute commit timestamp
id: ts
run: echo "value=$(date -u +%Y-%m-%dT%H:%M:%SZ)" >> "$GITHUB_OUTPUT"
- name: Commit if changed
# Step-level timeout — git-commit-data invokes `gh pr merge --auto`
# which can block indefinitely waiting for required checks. Cap at
# 5 min so the rest of the job (which may run other workloads) isn't
# starved. Pattern source: #1529 (collect-twitter.yml).
timeout-minutes: 5
uses: ./.github/actions/git-commit-data
with:
gh-token: ${{ secrets.DATA_BOT_TOKEN }}
actor-email: "bot@trendingrepo.com"
message: "chore(data): refresh mcp liveness ${{ steps.ts.outputs.value }}"
paths: |
data/mcp-liveness.json