File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8181 - name : Check PHP version
8282 run : php -v
8383
84+
85+ - name : Call Code Quality Agent
86+ env :
87+ AGENT_URL : ${{ secrets.CODE_QUALITY_AGENT_URL }}
88+ AGENT_TOKEN : ${{ secrets.CODE_QUALITY_AGENT_TOKEN }}
89+ run : |
90+ echo "Calling Code Quality Specialist agent for this PR..."
91+ curl -sS -X POST "$AGENT_URL/run_agent" \
92+ -H "Authorization: Bearer $AGENT_TOKEN" \
93+ -H "Content-Type: application/json" \
94+ -d "{\"repo\":\"${{ github.repository }}\",\"pr\":${{ toJson(github.event.pull_request)}}}" || true
95+
96+
8497 - name : Run apt-get update
8598 run : sudo apt-get update
8699
@@ -258,14 +271,3 @@ jobs:
258271 continue-on-error : true
259272
260273
261- - name : Call Code Quality Agent
262- if : github.event_name == 'pull_request'
263- env :
264- AGENT_URL : ${{ secrets.CODE_QUALITY_AGENT_URL }}
265- AGENT_TOKEN : ${{ secrets.CODE_QUALITY_AGENT_TOKEN }}
266- run : |
267- echo "Calling Code Quality Specialist agent for this PR..."
268- curl -sS -X POST "$AGENT_URL/run_agent" \
269- -H "Authorization: Bearer $AGENT_TOKEN" \
270- -H "Content-Type: application/json" \
271- -d "{\"repo\":\"${{ github.repository }}\",\"pr\":${{ toJson(github.event.pull_request)}}}" || true
You can’t perform that action at this time.
0 commit comments