diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 890f99de..49a30126 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -17,16 +17,17 @@ jobs: - name: git-config run: | - git config user.name ${{ github.repository_owner }} - git config user.email ${{ github.repository_owner }}@users.noreply.github.com + git config --global user.name ${{ github.repository_owner }} + git config --global user.email ${{ github.repository_owner }}@users.noreply.github.com - name: update-api-docs uses: actions/checkout@v3 with: ref: gh-pages + fetch-depth: 0 - run: | git rebase origin/master - sudo ./docs/api/generate_api_docs.sh + sudo bash ./docs/api/generate_api_docs.sh mv docs/api/sphinx-out/* docs/ git commit --all --amend --no-edit git push --force-with-lease