diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cf6b274206..397ecda51c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1584,6 +1584,7 @@ jobs: if: ${{ !contains('["pull_request", "merge_group"]', github.event_name) }} run: | cd ${{ runner.temp }}/book + git config --global init.defaultBranch main git init git config user.name "Deploy from CI" git config user.email "" diff --git a/ci/actions-templates/test-docs-template.yaml b/ci/actions-templates/test-docs-template.yaml index 54e1079c7b..3a4aa62bf8 100644 --- a/ci/actions-templates/test-docs-template.yaml +++ b/ci/actions-templates/test-docs-template.yaml @@ -44,6 +44,7 @@ jobs: # skip-all if: ${{ !contains('["pull_request", "merge_group"]', github.event_name) }} run: | cd ${{ runner.temp }}/book + git config --global init.defaultBranch main git init git config user.name "Deploy from CI" git config user.email ""