Skip to content

Commit a3fc223

Browse files
m-messerclaude
andcommitted
Fix client_payload serialization in gh api dispatch call
Use jq + --input to pass client_payload as a JSON object. The -F flag was serializing it as a string, causing a 422 from GitHub. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1b349e0 commit a3fc223

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
env:
7474
GH_TOKEN: ${{ secrets.SHIMMY_DEPLOY_TOKEN }}
7575
run: |
76+
jq -n --arg v "${{ steps.version.outputs.version }}" \
77+
'{"event_type":"release","client_payload":{"shimmy_version":$v}}' | \
7678
gh api repos/${{ github.repository_owner }}/evaluation-function-base/dispatches \
77-
--method POST \
78-
-f event_type=release \
79-
-F client_payload='{"shimmy_version": "${{ steps.version.outputs.version }}"}'
79+
--method POST --input -

0 commit comments

Comments
 (0)