auto generate openapi

This commit is contained in:
Alex 2023-11-29 14:13:56 +08:00
parent ded80544af
commit 54bb61a8de
1 changed files with 2 additions and 1 deletions

View File

@ -38,11 +38,12 @@ jobs:
- name: Commit and push if ./www/swagger/openapi.json changed
run: |
git diff --exit-code ./www/swagger/openapi.json || exit 0
git diff --exit-code ./www/swagger/openapi.json || (
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 origin HEAD:master
)