Skip to content

Commit 0cac540

Browse files
committed
update workflow
1 parent bb5a779 commit 0cac540

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,10 @@ jobs:
8585
8686
The GitHub CLI is available as \`gh\` and authenticated via \`GH_TOKEN\`. Git is available. You have write access to repository contents and can comment on pull requests, but you must not create or edit PRs directly.
8787
88-
IMPORTANT: Check for stop commands by running this periodically during your analysis:
89-
\`gh pr view ${{ github.event.pull_request.number }} --json comments --jq '.comments[] | select(.body | contains(\"stop\"))'\`
90-
If any comment contains 'stop', immediately exit with a cancellation message.
88+
IMPORTANT: Before starting your analysis, check if the user wants to stop by running:
89+
gh pr view ${{ github.event.pull_request.number }} --json comments --jq '.comments[] | select(.body | contains(\"stop\"))'
90+
91+
If this returns any results, immediately post a cancellation comment and exit. Otherwise, proceed with your analysis.
9192
9293
# Context:
9394
- Repo: ${{ github.repository }}
@@ -142,4 +143,6 @@ jobs:
142143
- If updates needed: Pushed commits to the persistent branch and a PR comment with compare link
143144
- If no updates needed: A brief comment explaining why no updates are required
144145
- Keep all changes minimal and consistent with existing documentation style
146+
147+
CRITICAL: After completing ANY of the above actions (stop command, updates completed, or no updates needed), you MUST immediately exit by running 'exit 0'. Do not continue running or wait for additional input.
145148
" --force --model "$MODEL" --output-format=text

0 commit comments

Comments
 (0)