File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,14 @@ runs:
2323 JIRA_API_TOKEN : ${{ inputs.token }}
2424 QUERY : ${{ inputs.jql }}
2525 run : |
26- request="{
27- \"jql\": \"${QUERY}\"
28- }"
26+ request=$(jq -n --arg query "$QUERY" '.jql = $query')
27+ echo "REQUEST=${request}"
2928 json_response=$(curl --request POST \
3029 --url 'https://jira.mongodb.org/rest/api/2/search' \
3130 --header 'Authorization: Bearer '"${JIRA_API_TOKEN}" \
3231 --header 'Accept: application/json' \
3332 --header 'Content-Type: application/json' \
3433 --data "$request")
35- echo "OUTPUT =${json_response}"
34+ echo "RESPONSE =${json_response}"
3635 echo "KEY=$(echo "${json_response}" | jq -c '.issues[] | .key' | head -n 1)" >> "$GITHUB_OUTPUT"
3736 echo "FOUND=$(echo "${json_response}" | jq -c '[.issues[]] | any')" >> "$GITHUB_OUTPUT"
You can’t perform that action at this time.
0 commit comments