Skip to content

Commit 5f7b605

Browse files
committed
fix: remove bash from auto optimization workflow
1 parent 73f526d commit 5f7b605

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/auto_optimization_pr.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ jobs:
127127
128128
- name: Run Claude auto optimization
129129
if: steps.prereqs.outputs.has_anthropic_key == 'true' && steps.auto_payload.outputs.should_run == 'true'
130+
timeout-minutes: 15
130131
uses: anthropics/claude-code-action@v1
131132
with:
132133
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
@@ -144,7 +145,8 @@ jobs:
144145
Do not change production selector logic or ranking behavior from this issue alone.
145146
If an eligible task is marked `experiment-only`, keep the change non-production.
146147
If the selected low-risk tasks already appear implemented on the current main branch, leave the working tree unchanged.
147-
Run the most relevant tests or ruff checks when you make a change.
148+
Do not use Bash in this workflow. Limit yourself to file edits and repository-local reasoning.
149+
The workflow will run CI after the draft PR is created.
148150
149151
## Issue Title
150152
${{ steps.issue_context.outputs.issue_title }}

tests/test_auto_optimization_pr_workflow_config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ def test_auto_optimization_workflow_handles_monthly_task_issues(self) -> None:
2525
self.assertIn("anthropics/claude-code-action@v1", workflow)
2626
self.assertIn("Export selected task summary", workflow)
2727
self.assertIn("claude_args: --max-turns 8", workflow)
28+
self.assertIn("timeout-minutes: 15", workflow)
2829
self.assertIn("steps.selected_tasks.outputs.task_summary", workflow)
30+
self.assertIn("Do not use Bash in this workflow.", workflow)
31+
self.assertIn("The workflow will run CI after the draft PR is created.", workflow)
2932
self.assertIn("gh pr create --draft", workflow)
3033
self.assertIn("gh workflow run ci.yml", workflow)
3134
self.assertIn("fetch-depth: 0", workflow)

0 commit comments

Comments
 (0)