mirror of
https://github.com/punkpeye/awesome-mcp-servers.git
synced 2026-09-17 04:11:24 +00:00
Temporarily automate Glama badge update
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
name: Patch Glama badge
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- add-yandex-workspace-mcp
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
patch:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: add-yandex-workspace-mcp
|
||||
|
||||
- name: Add Glama badge
|
||||
shell: bash
|
||||
run: |
|
||||
python - <<'PY'
|
||||
from pathlib import Path
|
||||
|
||||
path = Path("README.md")
|
||||
old = """- [denis-samatov/yandex-workspace-mcp](https://github.com/denis-samatov/yandex-workspace-mcp) 🐍 ☁️ - Yandex Disk (22 tools) and Yandex Wiki (27 tools) integration with a unified cross-service search. Read-only by default, with granular read/write/delete permissions, path allowlisting, and structured audit logging of every write or destructive call."""
|
||||
new = """- [denis-samatov/yandex-workspace-mcp](https://github.com/denis-samatov/yandex-workspace-mcp) [](https://glama.ai/mcp/servers/denis-samatov/yandex-workspace-mcp) 🐍 ☁️ - Yandex Disk (22 tools) and Yandex Wiki (27 tools) integration with a unified cross-service search. Read-only by default, with granular read/write/delete permissions, path allowlisting, and structured audit logging of every write or destructive call."""
|
||||
text = path.read_text(encoding="utf-8")
|
||||
count = text.count(old)
|
||||
if count != 1:
|
||||
raise SystemExit(f"Expected exactly one target entry, found {count}")
|
||||
path.write_text(text.replace(old, new, 1), encoding="utf-8")
|
||||
PY
|
||||
|
||||
- name: Commit patch and remove temporary workflow
|
||||
shell: bash
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git rm .github/workflows/patch-yandex-glama-badge.yml
|
||||
git add README.md
|
||||
git commit -m "Add Glama badge for yandex-workspace-mcp"
|
||||
git push origin HEAD:add-yandex-workspace-mcp
|
||||
Reference in New Issue
Block a user