diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 22394fad..07fdd6b2 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -41,8 +41,12 @@ jobs: run: | git config --local user.email "github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" - - name: Fetch gh-pages - run: git fetch origin gh-pages --depth=1 + - name: Pull gh-pages + run: | + git fetch origin gh-pages --depth=1 + git checkout gh-pages + git pull origin gh-pages --depth=1 + git checkout - - name: Set variables run: | full_version="v$(cut -d ' ' -f 2 <<< "$(poetry version)")"