auto generate openapi
This commit is contained in:
parent
3a9613979a
commit
ded80544af
|
|
@ -36,12 +36,13 @@ jobs:
|
|||
- name: generate openapi
|
||||
run: cd tools/openapi && python3 generates.py install-dependencies
|
||||
|
||||
- name: Commit and push if www/swagger/openapi.json changed
|
||||
- name: Commit and push if ./www/swagger/openapi.json changed
|
||||
run: |
|
||||
git diff --exit-code ./www/swagger/openapi.json || exit 0
|
||||
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 add ./www/swagger/openapi.json
|
||||
git commit -m "update openapi.json"
|
||||
git push
|
||||
git push origin HEAD:master
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue