File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,12 @@ runs:
16
16
- name : " Call Doc Previewer Webhook"
17
17
shell : bash
18
18
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 }}"
20
20
ADD_COMMENT_URL : " https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments"
21
21
GITHUB_TOKEN : " ${{ inputs.token }}"
22
+ ARTIFACT_JOB : " ${{ inputs.job }}"
22
23
run : |
23
- PREVIEWER_RESPONSE=$(curl -X POST "${PREVIEWER_URL}" )
24
+ PREVIEWER_RESPONSE=$(curl -X POST --data-urlencode="job=${JOB}" ${PREVIEWER_URL} )
24
25
if [[ $? ]]; then
25
26
curl -H "Authorization: token ${GITHUB_TOKEN}" \
26
27
-d '{"body": "${PREVIEWER_RESPONSE}"}' \
You can’t perform that action at this time.
0 commit comments