test
All checks were successful
/ build (pull_request) Successful in 35s

This commit is contained in:
Jonas 2024-09-17 20:14:54 +02:00
parent 4fd84862e9
commit 07fefc2c5c
Signed by: lubiana
SSH key fingerprint: SHA256:gkqM8DUX4Blf6P52fycW8ISTd+4eAHH+Uzu9iyc8hAM

View file

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