auto generate openapi
This commit is contained in:
parent
e81ff307c7
commit
320ed63c69
|
|
@ -33,4 +33,15 @@ jobs:
|
||||||
- name: 运行MediaServer
|
- name: 运行MediaServer
|
||||||
run: pwd && cd release/linux/Debug && sudo ./MediaServer -d &
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue