diff --git a/.github/workflows/swagger-doc.yml b/.github/workflows/swagger-doc.yml index 7f741181a..483dc8666 100644 --- a/.github/workflows/swagger-doc.yml +++ b/.github/workflows/swagger-doc.yml @@ -36,7 +36,7 @@ jobs: git checkout -B main_swagger git add .; \ git commit -m "gen OpenAPI Spec by github-actions"; \ - git push --set-upstream origin main_swagger + git push --force --set-upstream origin main_swagger fi env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}