Skip to content

Commit dd499c6

Browse files
committed
submodule: init
1 parent 1613f23 commit dd499c6

7 files changed

+53
-9
lines changed

.github/workflows/1.build_release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ jobs:
2121
- name: Checkout code
2222
uses: actions/checkout@v3
2323
with:
24-
submodules: 'false'
24+
submodules: "false"
2525

2626
# 步骤2:设置Python环境
2727
- name: Set up python
2828
uses: actions/setup-python@v4
2929
with:
30-
python-version: '3.11'
31-
cache: 'pip'
30+
python-version: "3.11"
31+
cache: "pip"
3232

3333
# 步骤3:安装依赖
3434
- name: Install dependencies

.github/workflows/2.realtime_release.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ on:
55
workflow_dispatch:
66
pull_request:
77
paths:
8-
- '**.py'
8+
- "**.py"
99
push:
1010
branches:
1111
- main
1212
- dev
1313
paths:
14-
- '**.py'
14+
- "**.py"
1515

1616
# 权限设置:需要写入仓库内容的权限
1717
permissions:
@@ -27,14 +27,14 @@ jobs:
2727
- name: Checkout code
2828
uses: actions/checkout@v3
2929
with:
30-
submodules: 'false'
30+
submodules: "false"
3131

3232
# 步骤2:设置Python环境
3333
- name: Set up python
3434
uses: actions/setup-python@v4
3535
with:
36-
python-version: '3.11'
37-
cache: 'pip'
36+
python-version: "3.11"
37+
cache: "pip"
3838

3939
# 步骤3:安装依赖
4040
- name: Install dependencies
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Update Submodules
2+
3+
# 触发条件:手动触发或定时触发
4+
on:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: "0 20 * * *" # 每天运行一次 凌晨4点 CST时间
8+
9+
# 权限设置:需要写入仓库内容的权限
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
update-submodules:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
# 步骤1:签出代码
19+
- name: Checkout code
20+
uses: actions/checkout@v3
21+
with:
22+
submodules: "true"
23+
24+
# 步骤2:更新子模块
25+
- name: Update submodules
26+
run: |
27+
git submodule update --remote --recursive
28+
29+
# 步骤3:提交
30+
- name: Commit and push if there are changes
31+
run: |
32+
git config --global user.name 'github-actions[bot]'
33+
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
34+
git add .
35+
git commit -m "Automated submodule update" || exit 0 # 如果没有更改,退出
36+
git push

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ pyrightconfig.json
187187
/warp.json
188188
/logs
189189
/screenshots
190-
/3rdparty
190+
/3rdparty/{PaddleOCR,RapidOCR}-json*
191191
/temp
192192

193193
# notify for smtp

.gitmodules

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "3rdparty/Auto_Simulated_Universe"]
2+
path = 3rdparty/Auto_Simulated_Universe
3+
url = https://github.com/CHNZYX/Auto_Simulated_Universe
4+
[submodule "3rdparty/Fhoe-Rail"]
5+
path = 3rdparty/Fhoe-Rail
6+
url = https://github.com/linruowuyin/Fhoe-Rail

3rdparty/Auto_Simulated_Universe

Submodule Auto_Simulated_Universe added at 6e00a9c

3rdparty/Fhoe-Rail

Submodule Fhoe-Rail added at b3b0ffa

0 commit comments

Comments
 (0)