From 2dd37f31793e5abb48f270da30da490b6c35b9a5 Mon Sep 17 00:00:00 2001 From: KRM7 <70973547+KRM7@users.noreply.github.com> Date: Thu, 17 Aug 2023 20:14:50 +0200 Subject: [PATCH] Update docs.yml --- .github/workflows/docs.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 890f99de..dab53217 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -17,17 +17,18 @@ 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 - mv docs/api/sphinx-out/* docs/ + sudo bash ./docs/api/generate_api_docs.sh + sudo mv docs/api/sphinx-out/* docs/ git commit --all --amend --no-edit git push --force-with-lease