Merge pull request 'docs: add gitea-logger implementation example' (#37) from fix/gitea-logger-docs into master
PR Pipeline — Authorize → Validate → Review → Merge / auth (push) Successful in 7s
PR Pipeline — Authorize → Validate → Review → Merge / validate (push) Successful in 2s
PR Pipeline — Authorize → Validate → Review → Merge / lint (push) Successful in 3s
PR Pipeline — Authorize → Validate → Review → Merge / ai-review (push) Successful in 4s
PR Pipeline — Authorize → Validate → Review → Merge / gate (push) Successful in 1s
PR Pipeline — Authorize → Validate → Review → Merge / auth (push) Successful in 7s
PR Pipeline — Authorize → Validate → Review → Merge / validate (push) Successful in 2s
PR Pipeline — Authorize → Validate → Review → Merge / lint (push) Successful in 3s
PR Pipeline — Authorize → Validate → Review → Merge / ai-review (push) Successful in 4s
PR Pipeline — Authorize → Validate → Review → Merge / gate (push) Successful in 1s
This commit was merged in pull request #37.
This commit is contained in:
@@ -302,3 +302,20 @@ With failures:
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## gitea-logger Implementation
|
||||||
|
|
||||||
|
When this step executes, write the report JSON to a temp file and push to Gitea:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
REPO="https://abiba-bot:${GITEA_PAT}@git.sysloggh.net/SyslogSolution/health-logs"
|
||||||
|
DIR="litellm"
|
||||||
|
FILE="${run_id}.json"
|
||||||
|
echo "${report_json}" > /tmp/${FILE}
|
||||||
|
(cd /tmp && git clone --depth 1 "${REPO}" &&
|
||||||
|
cp ${FILE} health-logs/${DIR}/${FILE} &&
|
||||||
|
cd health-logs && git add ${DIR}/${FILE} &&
|
||||||
|
git commit -m "litellm-health: ${run_id}" && git push)
|
||||||
|
rm -rf /tmp/health-logs /tmp/${FILE}
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user