diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index f3e018d75..44dc15063 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -26,6 +26,7 @@ jobs: - name: Generate documentation id: generate run: | + git checkout autogenerate-docs cd docs/build python build.py git diff --quiet && DIFF=false || DIFF=true @@ -37,7 +38,6 @@ jobs: if: steps.generate.outputs.diff == 'true' run: | echo $GITHUB_OUTPUT - git checkout autogenerate-docs git checkout -b update-docs git add docs/api-reference git config --global user.name 'github-actions'