|
7 | 7 | description: 'Repository URL to generate manifest for' |
8 | 8 | required: true |
9 | 9 | type: string |
| 10 | + repository_dispatch: |
| 11 | + types: [generate-manifest] |
10 | 12 |
|
11 | 13 | jobs: |
12 | 14 | generate-manifest: |
@@ -35,24 +37,25 @@ jobs: |
35 | 37 | env: |
36 | 38 | ANYON_API_KEY: ${{ secrets.ANYON_API_KEY }} |
37 | 39 | run: | |
38 | | - python scripts/get_manifest.py "${{ github.event.inputs.repo_url }}" |
| 40 | + REPO_URL="${{ github.event.inputs.repo_url || github.event.client_payload.repo_url }}" |
| 41 | + python scripts/get_manifest.py "$REPO_URL" |
39 | 42 |
|
40 | 43 | - name: Extract repo name for branch |
41 | 44 | id: repo-info |
42 | 45 | run: | |
43 | | - REPO_URL="${{ github.event.inputs.repo_url }}" |
| 46 | + REPO_URL="${{ github.event.inputs.repo_url || github.event.client_payload.repo_url }}" |
44 | 47 | REPO_NAME=$(echo "$REPO_URL" | sed 's/.*github\.com[:/]//' | sed 's/\.git$//' | tr '/' '-') |
45 | 48 | echo "repo_name=$REPO_NAME" >> $GITHUB_OUTPUT |
46 | 49 | echo "branch_name=add-manifest-$REPO_NAME" >> $GITHUB_OUTPUT |
47 | 50 |
|
48 | 51 | - name: Create Pull Request |
49 | 52 | uses: peter-evans/create-pull-request@v5 |
50 | 53 | with: |
51 | | - token: ${{ secrets.GITHUB_TOKEN }} |
| 54 | + token: ${{ secrets.MCPM_PERSONAL_ACCESS_TOKEN }} |
52 | 55 | commit-message: | |
53 | 56 | feat: add manifest for ${{ steps.repo-info.outputs.repo_name }} |
54 | 57 | |
55 | | - Generated manifest JSON for repository: ${{ github.event.inputs.repo_url }} |
| 58 | + Generated manifest JSON for repository: ${{ github.event.inputs.repo_url || github.event.client_payload.repo_url }} |
56 | 59 | |
57 | 60 | 🤖 Generated with [Claude Code](https://claude.ai/code) |
58 | 61 | |
|
61 | 64 | body: | |
62 | 65 | ## Summary |
63 | 66 | |
64 | | - This PR adds a new MCP server manifest generated from the repository: ${{ github.event.inputs.repo_url }} |
| 67 | + This PR adds a new MCP server manifest generated from the repository: ${{ github.event.inputs.repo_url || github.event.client_payload.repo_url }} |
65 | 68 | |
66 | 69 | ## Changes |
67 | 70 | |
|
0 commit comments