📦 新增 Gitea管理 Skill(金仓)
Some checks failed
Sync GitHub to CKB NAS Gitea / sync (push) Has been cancelled
Some checks failed
Sync GitHub to CKB NAS Gitea / sync (push) Has been cancelled
- 金仓/Gitea管理: 统一管理 Gitea 创建/推送/API/挂载 - SKILL主索引: 新增 Gitea管理,触发词 Gitea/推送到Gitea/创建仓库 - Gitea推送手册: 引用 Gitea管理 Skill - 群晖NAS管理: 外网入口增加 Gitea,引用 Gitea管理 - references: 批量注册NAS仓库脚本 - 已用 API 注册 15 个仓库到 Gitea 界面 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
39
.github/workflows/sync_github_to_gitea.yml
vendored
Normal file
39
.github/workflows/sync_github_to_gitea.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
# 将 fnvtk 的 GitHub 仓库同步到 CKB NAS Gitea(open.quwanzhi.com:3000)
|
||||
# 触发:定时(每6小时)、手动、或任意 push 时可选触发
|
||||
# 仓库需配置 Secrets:GITEA_TOKEN(必填)、GITHUB_TOKEN(全量同步必填)
|
||||
name: Sync GitHub to CKB NAS Gitea
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 */6 * * *"
|
||||
workflow_dispatch: {}
|
||||
push:
|
||||
branches: [ main, master ]
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
- ".github/workflows/sync_github_to_gitea.yml"
|
||||
|
||||
jobs:
|
||||
sync:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# 全量同步 fnvtk 下所有仓库时,请在仓库 Secrets 中配置 GH_PAT(GitHub PAT,repo 权限)
|
||||
- name: Sync GitHub → Gitea
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GH_PAT || secrets.GITHUB_TOKEN }}
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
GITEA_BASE_URL: "http://open.quwanzhi.com:3000"
|
||||
GITHUB_USER: "fnvtk"
|
||||
GITEA_USER: "fnvtk"
|
||||
SYNC_WORK_DIR: "${{ runner.temp }}/github_gitea_sync"
|
||||
run: |
|
||||
sudo apt-get update -qq && sudo apt-get install -y -qq jq
|
||||
chmod +x "01_卡资(金)/_团队成员/金仓/群晖NAS管理/scripts/sync_github_to_gitea.sh" 2>/dev/null || true
|
||||
if [ -f "01_卡资(金)/_团队成员/金仓/群晖NAS管理/scripts/sync_github_to_gitea.sh" ]; then
|
||||
bash "01_卡资(金)/_团队成员/金仓/群晖NAS管理/scripts/sync_github_to_gitea.sh"
|
||||
else
|
||||
echo "未找到同步脚本,跳过(请确认仓库结构)。"
|
||||
fi
|
||||
Reference in New Issue
Block a user