File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -87,18 +87,27 @@ jobs:
8787 Ignore all .md and .mdx files - focus only on the technical infrastructure.
8888 EOF
8989
90+ - name : Read system prompt for append
91+ if : steps.check-files.outputs.skip_review != 'true'
92+ id : read-prompt
93+ run : |
94+ SYSTEM_PROMPT=$(cat /tmp/system-prompt.md)
95+ echo "system_content<<EOF" >> $GITHUB_OUTPUT
96+ echo "$SYSTEM_PROMPT" >> $GITHUB_OUTPUT
97+ echo "EOF" >> $GITHUB_OUTPUT
98+
9099 - name : Run Claude Code Review
91100 if : steps.check-files.outputs.skip_review != 'true'
92101 id : claude-review
93102 uses : anthropics/claude-code-base-action@beta
94103 with :
95104 prompt_file : /tmp/review-prompt.txt
96- append_system_prompt_file : /tmp/system -prompt.md
105+ append_system_prompt : ${{ steps.read -prompt.outputs.system_content }}
97106 allowed_tools : " Read,Grep,Glob,LS"
98107 anthropic_api_key : ${{ secrets.ANTHROPIC_API_KEY }}
99108 timeout_minutes : " 15"
100109 max_turns : " 20"
101- model : " claude-3-opus-20240229 "
110+ model : " claude-sonnet-4-20250514 "
102111
103112 - name : Post review summary
104113 if : steps.claude-review.conclusion == 'success'
@@ -143,3 +152,4 @@ jobs:
143152 } catch (error) {
144153 console.error('Error processing review:', error);
145154 }
155+ }
You can’t perform that action at this time.
0 commit comments