Skip to content

Update All Model Lists #95

Update All Model Lists

Update All Model Lists #95

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