diff --git a/.forgejo/workflows/demo.yml b/.forgejo/workflows/demo.yml index 417e825..36f6093 100644 --- a/.forgejo/workflows/demo.yml +++ b/.forgejo/workflows/demo.yml @@ -19,9 +19,10 @@ jobs: ls -l pwd output=$(cat output.txt) + jq -n --arg msg "$(cat output.txt)" '{"body": $msg}' > /tmp/git-msg echo $output - curl -vvv -X POST \ + curl -X POST \ -H "Authorization: token ${GITHUB_TOKEN}" \ -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"