add debug info
This commit is contained in:
parent
f60e2f7004
commit
9093743ad6
1 changed files with 3 additions and 8 deletions
|
|
@ -142,19 +142,14 @@ jobs:
|
||||||
# Post comment to PR using jq for proper JSON escaping
|
# Post comment to PR using jq for proper JSON escaping
|
||||||
jq -Rs '{body: .}' comment_body.md > payload.json
|
jq -Rs '{body: .}' comment_body.md > payload.json
|
||||||
|
|
||||||
curl -sf -X POST \
|
echo "Posting comment to PR #${{ forgejo.event.pull_request.number }} with payload:"
|
||||||
|
cat payload.json
|
||||||
|
curl --fail-with-body -X POST \
|
||||||
-H "Authorization: token $PR_TOKEN" \
|
-H "Authorization: token $PR_TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d @payload.json \
|
-d @payload.json \
|
||||||
"${{ forgejo.api_url }}/repos/${{ forgejo.repository }}/issues/${{ forgejo.event.pull_request.number }}/comments"
|
"${{ forgejo.api_url }}/repos/${{ forgejo.repository }}/issues/${{ forgejo.event.pull_request.number }}/comments"
|
||||||
|
|
||||||
- name: Check build result
|
|
||||||
run: |
|
|
||||||
if [ "${{ steps.build.outcome }}" == "failure" ]; then
|
|
||||||
echo "Some builds failed - check build-logs artifact"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue