Update linux.yml

This commit is contained in:
alexliyu7352 2023-11-30 14:04:33 +08:00 committed by GitHub
parent 1b67fea2a2
commit b275b09598
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -35,9 +35,11 @@ jobs:
run: pwd && cd release/linux/Debug && sudo ./MediaServer -d &
- name: generate openapi
if: github.ref == 'refs/heads/master'
run: cd tools/openapi && python3 generates.py install-dependencies
- name: Commit and push if ./www/swagger/openapi.json changed
if: github.ref == 'refs/heads/master'
run: |
git diff --exit-code ./www/swagger/openapi.json || (
git config user.name alexliyu7352