Temporary: fix the failure-report step
This commit is contained in:
parent
4b90aa8348
commit
84155c0d18
1 changed files with 1 additions and 4 deletions
|
|
@ -47,10 +47,7 @@ jobs:
|
||||||
TOKEN: ${{ secrets.FORGEJO_TOKEN }}
|
TOKEN: ${{ secrets.FORGEJO_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
(dotnet --info 2>&1 | head -20; echo ----; tail -c 6000 ci.log 2>/dev/null) > diag.txt || true
|
(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:
|
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
|
||||||
```
|
|
||||||
" + open("diag.txt", errors="replace").read() + "
|
|
||||||
```"}))' > 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
|
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:
|
release:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue