Skip to content

Commit 43b1288

Browse files
committed
Update plugin-ci-workflow.yml
1 parent 49420f0 commit 43b1288

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/plugin-ci-workflow.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,19 @@ jobs:
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

0 commit comments

Comments
 (0)