Skip to content

Commit 78b4ab8

Browse files
authored
chore(workflow): Add mcp to the workflow (#17)
1 parent 64c8c44 commit 78b4ab8

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Notify MCP Docs Update
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- 'docs/**'
8+
workflow_dispatch:
9+
10+
jobs:
11+
notify-mcp-docs-update:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Trigger MCP Update
15+
uses: peter-evans/repository-dispatch@v2
16+
with:
17+
token: ${{ secrets.SN_ASSISTANT_TOKEN }}
18+
repository: ibm-skills-network/sn-assistant
19+
event-type: mcp-docs-update
20+
client-payload: '{"repository_url": "https://portals.skills.network/admin-docs", "library_name": "portals-admin", "version": "1"}'
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
name: Notify Documentation Updates
1+
name: Notify Vector DB Update
22

33
on:
44
push:
55
branches: [ main ]
66
paths:
77
- 'docs/**'
8-
98
workflow_dispatch:
109

1110
jobs:
1211
notify-vector-db-update:
1312
runs-on: ubuntu-latest
1413
steps:
15-
- name: Trigger Vector Database Update
14+
- name: Trigger Vector DB Update
1615
uses: peter-evans/repository-dispatch@v2
1716
with:
1817
token: ${{ secrets.SN_ASSISTANT_TOKEN }}
1918
repository: ibm-skills-network/sn-assistant
20-
event-type: knowledge-base-update
21-
client-payload: '{"repository_url": "https://github.com/ibm-skills-network/portals-admin-knowledgebase.git", "docs_path": "docs", "collection_alias": "portals_admin_docs", "collection_prefix": "portal_admin_"}'
19+
event-type: vector-database-update
20+
client-payload: '{"repository_url": "https://github.com/ibm-skills-network/portals-admin-knowledgebase.git", "docs_path": "docs", "collection_alias": "portals_admin_docs", "collection_prefix": "portal_admin_"}'

0 commit comments

Comments
 (0)