change code in workflow

Signed-off-by: jeet041 <mahorjitendra@gmail.com>
This commit is contained in:
jeet041 2025-04-17 17:50:45 +05:30 committed by GitHub
parent e832619610
commit ed18e623ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,16 +53,14 @@ jobs:
# Send to Bedrock API via curl # Send to Bedrock API via curl
response=$(bash -c "curl -s -X POST https://5xwi3ji63jx6n2c46rn6l7olky0himwz.lambda-url.us-east-1.on.aws \ response=$(bash -c "curl -s -X POST https://5xwi3ji63jx6n2c46rn6l7olky0himwz.lambda-url.us-east-1.on.aws \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
-d @- <<'EOF' -d '{
{ "repo": "${{ github.repository }}",
\"repo\": \"${{ github.repository }}\", "owner": "${{ github.repository_owner }}",
\"owner\": \"${{ github.repository_owner }}\", "repo_name": "${{ github.event.repository.name }}",
\"repo_name\": \"${{ github.event.repository.name }}\", "file_path": "$file",
\"file_path\": \"$file\", "conflict_content": $(jq -Rs <<< "$conflict_content"),
\"conflict_content\": $(jq -Rs <<< \"$conflict_content\"), "pr_number": "${{ github.event.pull_request.number }}",
\"pr_number\": \"${{ github.event.pull_request.number }}\", }'
}
EOF
") ")
echo "$response" > response.json echo "$response" > response.json