test
All checks were successful
/ ls (pull_request) Successful in 2m16s

This commit is contained in:
Jonas 2024-09-17 20:39:27 +02:00
parent 985e478a57
commit c84d4b9508
Signed by: lubiana
SSH key fingerprint: SHA256:gkqM8DUX4Blf6P52fycW8ISTd+4eAHH+Uzu9iyc8hAM

View file

@ -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: