Skip to content

Commit d7929aa

Browse files
Using curl --data-urlencode
1 parent 98c436f commit d7929aa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ runs:
1616
- name: "Call Doc Previewer Webhook"
1717
shell: bash
1818
env:
19-
PREVIEWER_URL: "${{ inputs.server }}/preview/${{ github.repository }}/${{ github.event.issue.number }}?job=${{ inputs.job }}"
19+
PREVIEWER_URL: "${{ inputs.server }}/preview/${{ github.repository }}/${{ github.event.issue.number }}"
2020
ADD_COMMENT_URL: "https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments"
2121
GITHUB_TOKEN: "${{ inputs.token }}"
22+
ARTIFACT_JOB: "${{ inputs.job }}"
2223
run: |
23-
PREVIEWER_RESPONSE=$(curl -X POST "${PREVIEWER_URL}")
24+
PREVIEWER_RESPONSE=$(curl -X POST --data-urlencode="job=${JOB}" ${PREVIEWER_URL})
2425
if [[ $? ]]; then
2526
curl -H "Authorization: token ${GITHUB_TOKEN}" \
2627
-d '{"body": "${PREVIEWER_RESPONSE}"}' \

0 commit comments

Comments
 (0)