File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,16 @@ runs:
16
16
env :
17
17
PREVIEWER_URL : " ${{ inputs.previewer-server }}/preview/${{ github.repository }}/${{ github.event.issue.number }}"
18
18
ARTIFACT_JOB : ${{ inputs.artifact-job }}
19
- run : echo "previewer-response=$(curl -X POST -f --data-urlencode \"job=${ARTIFACT_JOB}\" ${PREVIEWER_URL})" >> "$GITHUB_OUTPUT"
19
+ run : |
20
+ PREVIEWER_RESPONSE=$(curl -X POST -f --data-urlencode \"job=${ARTIFACT_JOB}\" ${PREVIEWER_URL})
21
+ EXIT_CODE=$?
22
+ echo "previewer-response=${PREVIEWER_RESPONSE}" | tee -a "$GITHUB_OUTPUT"
23
+ exit ${EXIT_CODE}
20
24
- name : " Add GitHub Comment"
21
25
shell : bash
22
26
env :
23
27
ADD_COMMENT_URL : " https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments"
24
28
GITHUB_TOKEN : ${{ github.token }}
25
29
PREVIEWER_RESPONSE : ${{ steps.call-previewer.outputs.previewer-response }}
26
30
run : |
27
- curl -H "Authorization: Bearer ${GITHUB_TOKEN}" -d '{"body": "${{ env.PREVIEWER_RESPONSE }}"}' ${ADD_COMMENT_URL}
31
+ curl -f - H "Authorization: Bearer ${GITHUB_TOKEN}" -d '{"body": "${{ env.PREVIEWER_RESPONSE }}"}' ${ADD_COMMENT_URL}
You can’t perform that action at this time.
0 commit comments