File tree Expand file tree Collapse file tree 2 files changed +21
-5
lines changed
Expand file tree Collapse file tree 2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 11
2- name : PR Validation for Polling file
2+ name : PR Validation for Polling file prod
33
44on :
55 pull_request_target :
@@ -14,7 +14,7 @@ permissions:
1414
1515env :
1616 CLIENT_ID : ${{ secrets.AZURE_CONTENT_VALIDATION_CLIENT_ID }}
17- API_BASE : https://sentinel-content-validationapi-prod-bvgsc3hjhyeqangg.canadacentral-01.azurewebsites.net/
17+ API_BASE : https://sentinel-content-validationapi-prod-bvgsc3hjhyeqangg.canadacentral-01.azurewebsites.net/
1818
1919jobs :
2020 pr-validate :
9494 response=$(curl -s -H "Authorization: Bearer $TOKEN" "$API_BASE/")
9595 echo "$response" | jq . || true
9696
97+ - name : 📡 Send GET request with Bearer token
98+ run : |
99+ echo "🚀 Sending GET to $API_URL"
100+ response=$(curl -s -H "Authorization: Bearer $TOKEN" "$API_URL")
101+ echo "🔍 Response JSON:"
102+ echo "$response" | jq .
103+
97104 - name : Send POST request with JSON payload
98105 if : ${{ env.JSON_PAYLOAD_PATH != 'empty' }}
99106 run : |
Original file line number Diff line number Diff line change 11
2- name : PR Validation for Polling file
2+ name : dev
33
44on :
55 pull_request_target :
9494 response=$(curl -s -H "Authorization: Bearer $TOKEN" "$API_BASE/")
9595 echo "$response" | jq . || true
9696
97+ - name : 📡 Send GET request with Bearer token
98+ run : |
99+ echo "🚀 Sending GET to $API_URL"
100+ response=$(curl -s -H "Authorization: Bearer $TOKEN" "$API_URL")
101+ echo "🔍 Response JSON:"
102+ echo "$response" | jq .
103+
97104 - name : Send POST request with JSON payload
98105 if : ${{ env.JSON_PAYLOAD_PATH != 'empty' }}
99106 run : |
@@ -102,9 +109,11 @@ jobs:
102109 response=$(curl -s -X POST "$API_BASE/" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" --data-binary "@$JSON_PAYLOAD_PATH")
103110
104111 result_status=$(echo "$response" | jq -r '.status // empty')
105- echo message=$(echo "$response" | jq -r '.message // "No message provided"')
112+ message=$(echo "$response" | jq -r '.message // "No message provided"')
106113
107-
114+ echo $result_status
115+ echo "$result_status"
116+
108117 echo "✅ $message"
109118 if [ "$result_status" != "passed" ]; then
110119 echo -e " ❌ Validation failed: $message "
You can’t perform that action at this time.
0 commit comments