auto generate openapi

This commit is contained in:
Alex 2023-11-29 13:17:08 +08:00
parent e81ff307c7
commit 320ed63c69
1 changed files with 11 additions and 0 deletions

View File

@ -33,4 +33,15 @@ jobs:
- name: 运行MediaServer
run: pwd && cd release/linux/Debug && sudo ./MediaServer -d &
- name: generate openapi
run: cd tools/openapi && python3 generates.py
- name: Commit and push if www/swagger/openapi.json changed
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add www/swagger/openapi.json
git commit -m "update openapi.json"
git push