ci(workflows): fix jq selector for AI release notes
Multi-Platform CI / test-platforms (ubuntu-22.04) (push) Successful in 19s
Multi-Platform CI / test-platforms (windows-latest) (push) Successful in 18s
Multi-Platform CI / Package for Linux x86_64 (push) Successful in 1m11s
Multi-Platform CI / Package for Windows x86_64 (push) Successful in 1m13s
Multi-Platform CI / Create GitHub Release (push) Successful in 16s

Update response path from .choices[0].text to
.output[1].content[0].text to match API response schema and
restore successful notes generation
This commit is contained in:
2025-09-24 00:35:03 -07:00
parent cde8b70bd3
commit e548c13f8c
+2 -2
View File
@@ -112,8 +112,8 @@ jobs:
}")
# Check if the API call was successful and extract the response
if echo "$RESPONSE" | jq -e '.choices[0].text' > /dev/null 2>&1; then
echo "$RESPONSE" | jq -r '.choices[0].text' > release_notes.md
if echo "$RESPONSE" | jq -e '.output[1].content[0].text' > /dev/null 2>&1; then
echo "$RESPONSE" | jq -r '.output[1].content[0].text' > release_notes.md
echo "Generated AI release notes successfully"
else
echo "AI generation failed, falling back to simple notes"