This commit is contained in:
parent
4fd84862e9
commit
07fefc2c5c
1 changed files with 3 additions and 2 deletions
|
@ -19,9 +19,10 @@ jobs:
|
||||||
ls -l
|
ls -l
|
||||||
pwd
|
pwd
|
||||||
output=$(cat output.txt)
|
output=$(cat output.txt)
|
||||||
|
jq -n --arg msg "$(cat output.txt)" '{"body": $msg}' > /tmp/git-msg
|
||||||
echo $output
|
echo $output
|
||||||
curl -vvv -X POST \
|
curl -X POST \
|
||||||
-H "Authorization: token ${GITHUB_TOKEN}" \
|
-H "Authorization: token ${GITHUB_TOKEN}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"body": "${{output }}"}' \
|
-d @/tmp/git-msg \
|
||||||
"${{ env.GITHUB_SERVER_URL }}/api/v1/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments"
|
"${{ env.GITHUB_SERVER_URL }}/api/v1/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments"
|
||||||
|
|
Loading…
Reference in a new issue