generated from IQAIcom/mcp-server-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.02 KB
/
sync-tools.yml
File metadata and controls
47 lines (38 loc) · 1.02 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
name: Sync MCP Tool Docs
on:
push:
branches:
- main
permissions:
contents: write
jobs:
sync-tools:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: |
if [ -f pnpm-lock.yaml ]; then
corepack enable
pnpm install --frozen-lockfile
else
npm install
fi
- name: Generate MCP tool documentation
run: npx tsx .github/actions/generate-mcp-tools/generate-tools.mjs
- name: Commit README changes
run: |
if git diff --quiet; then
echo "No README changes"
exit 0
fi
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add README.md
git commit -m "chore: auto-sync MCP tool documentation"
git push