-
Notifications
You must be signed in to change notification settings - Fork 7
199 lines (163 loc) · 6.18 KB
/
Copy pathupdate-all-models.yml
File metadata and controls
199 lines (163 loc) · 6.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
name: Update All Model Lists
on:
schedule:
# Run daily at 18:00 UTC (02:00 Beijing time next day)
- cron: '0 18 * * *'
workflow_dispatch:
inputs:
reason:
description: 'Reason for manual trigger'
required: false
default: 'Manual update all model lists'
# Trigger when workflow files change
push:
paths:
- '.github/workflows/update-all-models.yml'
- 'docs/scripts/update_models_aihuanxin.py'
- 'docs/scripts/update_models_huggingface.py'
- 'docs/scripts/update_models_modelscope.py'
jobs:
update-aihuanxin:
runs-on: ubuntu-latest
name: Update aihuanxin model list
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install dependencies
run: pip install requests
- name: Run aihuanxin update
id: aihuanxin
run: |
cd docs/scripts
python update_models_aihuanxin.py && echo "has_changes=true" >> $GITHUB_OUTPUT || echo "has_changes=false" >> $GITHUB_OUTPUT
- name: Create PR for aihuanxin
if: steps.aihuanxin.outputs.has_changes == 'true'
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: update model list from aihuanxin"
title: "Update model list from aihuanxin"
body: |
## Model List Update (aihuanxin)
This PR updates the model list from the aihuanxin platform.
### Update Statistics
- **Total models**: Updated based on latest data from aihuanxin
### Detailed Changes
Please review the complete model list in the updated file:
- [`docs/flagrelease_en/model_list/model-list-aihuanxin.md`](docs/flagrelease_en/model_list/model-list-aihuanxin.md)
### Review Checklist
- [ ] Verify all URLs are accessible
- [ ] Check model names are correctly formatted
- [ ] Ensure no duplicate entries exist
- [ ] Confirm alphabetical sorting is correct
---
*This PR was automatically generated by GitHub Actions.*
branch: update/model-list-aihuanxin
base: main
delete-branch: true
add-paths: |
docs/flagrelease_en/model_list/model-list-aihuanxin.md
update-modelscope:
runs-on: ubuntu-latest
name: Update ModelScope model list
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install dependencies
run: pip install requests
- name: Run ModelScope update
id: modelscope
run: |
cd docs/scripts
python update_models_modelscope.py && echo "has_changes=true" >> $GITHUB_OUTPUT || echo "has_changes=false" >> $GITHUB_OUTPUT
- name: Create PR for ModelScope
if: steps.modelscope.outputs.has_changes == 'true'
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: update model list from ModelScope"
title: "Update model list from ModelScope"
body: |
## Model List Update (ModelScope)
This PR updates the model list from the ModelScope platform.
### Update Statistics
- **Total models**: Updated based on latest data from ModelScope
### Detailed Changes
Please review the complete model list in the updated file:
- [`docs/flagrelease_en/model_list/model-list-modelscope.md`](docs/flagrelease_en/model_list/model-list-modelscope.md)
### Review Checklist
- [ ] Verify all URLs are accessible
- [ ] Check model names are correctly formatted
- [ ] Ensure no duplicate entries exist
- [ ] Confirm alphabetical sorting is correct
---
*This PR was automatically generated by GitHub Actions.*
branch: update/model-list-modelscope
base: main
delete-branch: true
add-paths: |
docs/flagrelease_en/model_list/model-list-modelscope.md
update-huggingface:
runs-on: ubuntu-latest
name: Update HuggingFace model list
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install dependencies
run: pip install requests
- name: Run HuggingFace update
id: huggingface
run: |
cd docs/scripts
python update_models_huggingface.py && echo "has_changes=true" >> $GITHUB_OUTPUT || echo "has_changes=false" >> $GITHUB_OUTPUT
- name: Create PR for HuggingFace
if: steps.huggingface.outputs.has_changes == 'true'
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: update model list from HuggingFace"
title: "Update model list from HuggingFace"
body: |
## Model List Update (HuggingFace)
This PR updates the model list from the HuggingFace platform.
### Update Statistics
- **Total models**: Updated based on latest data from HuggingFace
### Detailed Changes
Please review the complete model list in the updated file:
- [`docs/flagrelease_en/model_list/model-list-huggingface.md`](docs/flagrelease_en/model_list/model-list-huggingface.md)
### Review Checklist
- [ ] Verify all URLs are accessible
- [ ] Check model names are correctly formatted
- [ ] Ensure no duplicate entries exist
- [ ] Confirm alphabetical sorting is correct
---
*This PR was automatically generated by GitHub Actions.*
branch: update/model-list-huggingface
base: main
delete-branch: true
add-paths: |
docs/flagrelease_en/model_list/model-list-huggingface.md