We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39728aa commit 3fad657Copy full SHA for 3fad657
1 file changed
action.yml
@@ -115,10 +115,10 @@ runs:
115
echo "Fetching quality gate status..."
116
117
response=$(curl --silent --http1.1 -X GET \
118
- "${{ inputs.emboldUrl }}/api/v1/repositories/${{ inputs.emboldRepoUid }}/qualitygateprofiles/status" \
+ "${{ inputs.emboldUrl }}/api/v1/repositories/${{ inputs.emboldRepoUid }}/qualitygateprofiles" \
119
-H "Authorization: Bearer $EMBOLD_TOKEN")
120
121
- status=$(echo "$response" | grep -o '"status":"[^"]*"' | cut -d'"' -f4)
+ status=$(echo "$response" | grep -o '"status":"[^"]*"' | head -1 | cut -d'"' -f4)
122
123
echo "Quality Gate Status: $status"
124
echo "status=$status" >> $GITHUB_OUTPUT
0 commit comments