mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 08:43:02 +08:00
进行第一阶段的调试修复
- 调整了配置生成时的部分逻辑 - 在几乎所有涉及数据交换处都添加了debug日志, 进入、离开每个模块也都有相应的日志提示 - 原 MemoryGraph 、SessionManager 序列化逻辑在windows中会因为文件锁导致无法正常序列化,已修复 - 原总结逻辑会导致对话缓存因没有用户昵称而造成不同用户的身份混淆,在 MemoryManager 添加了根据用户id获取用户身份的逻辑 - 调整了部分提示词; 在主对话模块进行时,将会先添加`强化提示词`,对话后移除,效果待评测 - 添加了README文件,说明现有实现、后续规划等内容 - 添加了从gitea同步至github的脚本,这仓库可不能丢啊
This commit is contained in:
36
.github/workflows/sync-from-gitea.yml
vendored
Normal file
36
.github/workflows/sync-from-gitea.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
name: Sync from Gitea
|
||||
|
||||
# 1. 给 GITHUB_TOKEN 开写权限
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '*/30 * * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
sync:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 配置 Git 用户
|
||||
run: |
|
||||
git config --global user.name "Gitea Sync Bot"
|
||||
git config --global user.email "slhafzjw@slhaf.work"
|
||||
|
||||
- name: 关闭全局 SSL 校验
|
||||
run: git config --global http.sslVerify false
|
||||
|
||||
- name: Clone from Gitea (mirror)
|
||||
run: |
|
||||
git clone --mirror \
|
||||
https://${{ secrets.GITEA_USER }}:${{ secrets.GITEA_TOKEN }}@${{ secrets.GITEA_URL }} \
|
||||
gitea-mirror
|
||||
|
||||
- name: Push to GitHub
|
||||
run: |
|
||||
cd gitea-mirror
|
||||
# 明确推到名为 "github" 的 remote
|
||||
git remote add github \
|
||||
https://${{ github.repository_owner }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
|
||||
git push --mirror github
|
||||
Reference in New Issue
Block a user