File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
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."
You can’t perform that action at this time.
0 commit comments