diff --git a/.github/workflows/pr_ci_playwright_e2e.yaml b/.github/workflows/pr_ci_playwright_e2e.yaml index 973cb2baf..98b56594f 100644 --- a/.github/workflows/pr_ci_playwright_e2e.yaml +++ b/.github/workflows/pr_ci_playwright_e2e.yaml @@ -77,6 +77,8 @@ jobs: - name: Ensure gh-pages branch exists run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' git fetch origin gh-pages if git rev-parse --verify origin/gh-pages; then git checkout gh-pages @@ -86,8 +88,6 @@ jobs: git rm -rf . echo "# GitHub Pages" > index.html git add index.html - git config --global user.name 'github-actions[bot]' - git config --global user.email 'github-actions[bot]@users.noreply.github.com' git commit -m "Initial commit" git push origin gh-pages fi