Skip to content

Commit 3e513b3

Browse files
authored
fix(ci): use repository dispatch for agentic ingest [skip-sweep] (#2237)
Switch every agentic ingest trigger to the repository_dispatch contract exposed by InferenceX-app, avoiding the Actions-write permission required by workflow_dispatch. 中文:将所有 Agentic 摄取触发器切换到 InferenceX-app 提供的 repository_dispatch 契约,避免 workflow_dispatch 所需的 Actions 写入权限。
1 parent 3355132 commit 3e513b3

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/e2e-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,10 +424,10 @@ jobs:
424424
curl -sSf -X POST \
425425
-H "Authorization: Bearer ${{ secrets.INFX_FRONTEND_PAT }}" \
426426
-H "Accept: application/vnd.github+v3+json" \
427-
https://api.github.com/repos/SemiAnalysisAI/InferenceX-app/actions/workflows/ingest-agentic-results.yml/dispatches \
427+
https://api.github.com/repos/SemiAnalysisAI/InferenceX-app/dispatches \
428428
-d '{
429-
"ref": "master",
430-
"inputs": {
429+
"event_type": "ingest-agentic-results",
430+
"client_payload": {
431431
"run-id": "${{ github.run_id }}",
432432
"run-attempt": "${{ github.run_attempt }}",
433433
"database-target": "production"

.github/workflows/recover-reused-ingest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ jobs:
163163
curl -sSf -X POST \
164164
-H "Authorization: Bearer ${{ secrets.INFX_FRONTEND_PAT }}" \
165165
-H "Accept: application/vnd.github+v3+json" \
166-
https://api.github.com/repos/SemiAnalysisAI/InferenceX-app/actions/workflows/ingest-agentic-results.yml/dispatches \
166+
https://api.github.com/repos/SemiAnalysisAI/InferenceX-app/dispatches \
167167
-d '{
168-
"ref": "master",
169-
"inputs": {
168+
"event_type": "ingest-agentic-results",
169+
"client_payload": {
170170
"run-id": "${{ github.run_id }}",
171171
"run-attempt": "${{ github.run_attempt }}",
172172
"database-target": "production"

.github/workflows/run-sweep.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -970,10 +970,10 @@ jobs:
970970
curl -sSf -X POST \
971971
-H "Authorization: Bearer ${{ secrets.INFX_FRONTEND_PAT }}" \
972972
-H "Accept: application/vnd.github+v3+json" \
973-
https://api.github.com/repos/SemiAnalysisAI/InferenceX-app/actions/workflows/ingest-agentic-results.yml/dispatches \
973+
https://api.github.com/repos/SemiAnalysisAI/InferenceX-app/dispatches \
974974
-d '{
975-
"ref": "master",
976-
"inputs": {
975+
"event_type": "ingest-agentic-results",
976+
"client_payload": {
977977
"run-id": "${{ github.run_id }}",
978978
"run-attempt": "${{ github.run_attempt }}",
979979
"database-target": "production"

0 commit comments

Comments
 (0)