Skip to content

Commit bb5a779

Browse files
committed
update
1 parent 518ccf1 commit bb5a779

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/auto-llms-txt.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,13 @@ jobs:
4040
4141
- name: Post initial comment
4242
run: |
43-
COMMENT_ID=$(gh pr comment ${{ github.event.pull_request.number }} --body "🤖 **LLMs.txt Auto-Update**
43+
gh pr comment ${{ github.event.pull_request.number }} --body "🤖 **LLMs.txt Auto-Update**
4444
4545
Analyzing documentation changes to update llms.txt files...
4646
4747
💡 **Want to stop this process?** Comment \`stop\` below and I'll cancel the analysis.
4848
49-
⏱️ This will timeout after 30 minutes." --json id --jq '.id')
50-
echo "COMMENT_ID=$COMMENT_ID" >> $GITHUB_ENV
49+
⏱️ This will timeout after 30 minutes."
5150
env:
5251
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5352

@@ -61,7 +60,7 @@ jobs:
6160
run: |
6261
# Check for stop command every 30 seconds
6362
check_stop() {
64-
if gh pr view ${{ github.event.pull_request.number }} --json comments --jq '.comments[] | select(.author.login == "github-actions[bot]" and (.body | contains("stop")))' | grep -q stop; then
63+
if gh pr view ${{ github.event.pull_request.number }} --json comments --jq -r '.comments[] | select(.body | contains("stop")) | .body' | grep -q stop; then
6564
gh pr comment ${{ github.event.pull_request.number }} --body "⏹️ **Analysis Stopped**
6665
6766
LLMs.txt analysis cancelled per user request."

0 commit comments

Comments
 (0)