From 84155c0d18bad03cdd106ea2df1ffd7dec2ac832 Mon Sep 17 00:00:00 2001 From: Erik Date: Sat, 26 Sep 2026 16:01:46 +0200 Subject: [PATCH] Temporary: fix the failure-report step --- .forgejo/workflows/ci.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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: