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
response=$(bash -c "curl -s -X POST https://5xwi3ji63jx6n2c46rn6l7olky0himwz.lambda-url.us-east-1.on.aws \
-H 'Content-Type: application/json' \
-d @- <<'EOF'
{
\"repo\": \"${{ github.repository }}\",
\"owner\": \"${{ github.repository_owner }}\",
\"repo_name\": \"${{ github.event.repository.name }}\",
\"file_path\": \"$file\",
\"conflict_content\": $(jq -Rs <<< \"$conflict_content\"),
\"pr_number\": \"${{ github.event.pull_request.number }}\",
}
EOF
-d '{
"repo": "${{ github.repository }}",
"owner": "${{ github.repository_owner }}",
"repo_name": "${{ github.event.repository.name }}",
"file_path": "$file",
"conflict_content": $(jq -Rs <<< "$conflict_content"),
"pr_number": "${{ github.event.pull_request.number }}",
}'
")
echo "$response" > response.json