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
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user