mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 05:25:50 +00:00
change code in workflow
Signed-off-by: jeet041 <mahorjitendra@gmail.com>
This commit is contained in:
parent
e832619610
commit
ed18e623ad
1 changed files with 8 additions and 10 deletions
18
.github/workflows/AI_to_merge_conflict.yml
vendored
18
.github/workflows/AI_to_merge_conflict.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue