Temporary: fix the failure-report step
Some checks failed
CI / build-and-test (pull_request) Failing after 47s
CI / release (pull_request) Has been skipped

This commit is contained in:
Erik 2026-09-26 16:01:46 +02:00
parent 4b90aa8348
commit 84155c0d18

View file

@ -47,10 +47,7 @@ jobs:
TOKEN: ${{ secrets.FORGEJO_TOKEN }}
run: |
(dotnet --info 2>&1 | head -20; echo ----; tail -c 6000 ci.log 2>/dev/null) > diag.txt || true
python3 -c 'import json,sys; print(json.dumps({"body": "CI failure output:
```
" + open("diag.txt", errors="replace").read() + "
```"}))' > diag.json
python3 -c 'import json; t=open("diag.txt", errors="replace").read(); n=chr(10); f=chr(96)*3; print(json.dumps({"body": "CI failure output:"+n+f+n+t+n+f}))' > diag.json
curl -fsS -X POST -H "Authorization: token $TOKEN" -H "Content-Type: application/json" -d @diag.json "${GITHUB_SERVER_URL}/api/v1/repos/${GITHUB_REPOSITORY}/issues/2/comments" > /dev/null
release: