From c84d4b950846b51868407cd090264c6ea702f0c4 Mon Sep 17 00:00:00 2001 From: lubiana Date: Tue, 17 Sep 2024 20:39:27 +0200 Subject: [PATCH] test --- .forgejo/workflows/pull_request.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/pull_request.yml b/.forgejo/workflows/pull_request.yml index 9b6e6a4..66ed43e 100644 --- a/.forgejo/workflows/pull_request.yml +++ b/.forgejo/workflows/pull_request.yml @@ -26,14 +26,15 @@ jobs: run: composer mutation - name: Add comment to pull request run: | + echo '\`\`\`' >> /tmp/pull-request-comment cat var/log/infection.txt >> /tmp/pull-request-comment cat var/log/summary.log >> /tmp/pull-request-comment - cat /tmp/pull-request-comment - output=$(cat /tmp/pull-request-comment) - curl -vvv -X POST \ + echo '\`\`\`' >> /tmp/pull-request-comment + jq -n --arg msg "$(cat /tmp/pull-request-comment)" '{"body": $msg}' > /tmp/git-msg + 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" - name: GIT commit and push all changed files env: