Skip to content

Commit aa6e0d8

Browse files
authored
Merge pull request #3 from mongodb/fix_string_concat
fix: string concat
2 parents b2b2f4b + 80b3b30 commit aa6e0d8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

find-jira/action.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)