diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 2b0bf628..a9b07d37 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -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 + )