Skip to content

fix: 视频输入改为 base64 内联上传(适配 Gemini 2.0+) #1803

fix: 视频输入改为 base64 内联上传(适配 Gemini 2.0+)

fix: 视频输入改为 base64 内联上传(适配 Gemini 2.0+) #1803

Workflow file for this run

name: CI
on:
pull_request:
types: [opened, synchronize]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: 3.11
- name: Setup Poetry
uses: snok/install-poetry@v1.4.2
- name: Install and update requirements
run: |
poetry lock
poetry install --all-groups
poetry update
- name: Check database update
run: |
cp .env.template .env
poetry run nb orm upgrade
poetry run nb orm check | grep '没有检测到新的升级操作' && exit 0
exit 1
# - name: Run pytest
# run: poetry run pytest
- name: Generate COMMANDS.md
run: |
poetry run nb larkhelp-generate zh_hans COMMANDS.md
- name: Commit and push changes
run: |
git add .
if ! git diff --cached --quiet; then
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -m "Auto update from GitHub Actions"
git push origin HEAD:${{ github.head_ref }}
else
echo "No changes to commit."
fi