diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 9f9c4b7..85caa24 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -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: