Skip to content

Commit 53b795a

Browse files
committed
fix: use GitHub App token for generate-llm-txt workflow to bypass branch protection
1 parent 03a7b3d commit 53b795a

File tree

1 file changed

+9
-30
lines changed

1 file changed

+9
-30
lines changed

.github/workflows/generate-llm-txt.yml

Lines changed: 9 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,17 @@ jobs:
2424
pull-requests: write
2525

2626
steps:
27+
- name: Generate token
28+
id: generate_token
29+
uses: actions/create-github-app-token@v1
30+
with:
31+
app-id: ${{ secrets.BOT_APP_ID }}
32+
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
33+
2734
- name: Checkout code
2835
uses: actions/checkout@v4
2936
with:
30-
token: ${{ secrets.GITHUB_TOKEN }}
37+
token: ${{ steps.generate_token.outputs.token }}
3138
fetch-depth: 0
3239

3340
- name: Set up Python
@@ -62,32 +69,4 @@ jobs:
6269
git commit -m "docs: update llm.txt for AI agents [skip ci]"
6370
git push
6471
env:
65-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66-
67-
- name: Create Pull Request (for releases)
68-
if: github.event_name == 'release' && steps.check_changes.outputs.no_changes == 'false'
69-
uses: peter-evans/create-pull-request@v7
70-
with:
71-
token: ${{ secrets.GITHUB_TOKEN }}
72-
commit-message: "docs: update llm.txt for release ${{ github.event.release.tag_name }}"
73-
title: "📚 Update llm.txt for AI agents (Release ${{ github.event.release.tag_name }})"
74-
body: |
75-
## 🤖 Automated llm.txt Update
76-
77-
This PR automatically updates the llm.txt file for AI agents following the release of version ${{ github.event.release.tag_name }}.
78-
79-
### Changes
80-
- Updated command documentation
81-
- Refreshed examples and usage patterns
82-
- Updated version information
83-
84-
### What is llm.txt?
85-
llm.txt is a comprehensive guide for AI agents to understand how to interact with MCPM programmatically. It includes:
86-
- All CLI commands with parameters and examples
87-
- Environment variables for automation
88-
- Best practices for AI agent integration
89-
- Error handling and troubleshooting
90-
91-
This file is automatically generated from the CLI structure using `scripts/generate_llm_txt.py`.
92-
branch: update-llm-txt-${{ github.event.release.tag_name }}
93-
delete-branch: true
72+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}

0 commit comments

Comments
 (0)