From add4da16e5120f58f3c0515922c214334a1f60df Mon Sep 17 00:00:00 2001 From: aasim Date: Sat, 18 May 2024 11:20:15 -0400 Subject: [PATCH] updated git config identity in step of workflow --- .github/workflows/pr_ci_playwright_e2e.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr_ci_playwright_e2e.yaml b/.github/workflows/pr_ci_playwright_e2e.yaml index e388ba5b7..783c56d81 100644 --- a/.github/workflows/pr_ci_playwright_e2e.yaml +++ b/.github/workflows/pr_ci_playwright_e2e.yaml @@ -86,7 +86,9 @@ jobs: git rm -rf . echo "# GitHub Pages" > index.html git add index.html - git -c user.name='github-actions[bot]' -c user.email='github-actions[bot]@users.noreply.github.com' commit -m "Initial commit" + git config user.name 'github-actions[bot]' + git config user.email 'github-actions[bot]@users.noreply.github.com' + git commit -m "Initial commit" git push origin gh-pages fi @@ -94,8 +96,8 @@ jobs: if: always() run: | # Configuring git - git config --global user.name 'github-actions[bot]' - git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git config user.name 'github-actions[bot]' + git config user.email 'github-actions[bot]@users.noreply.github.com' # Clone the repository to the gh-pages branch git clone --branch=gh-pages https://github.com/${{ github.repository }} gh-pages || (git clone https://github.com/${{ github.repository }} gh-pages && cd gh-pages && git checkout --orphan gh-pages) cd gh-pages @@ -104,7 +106,7 @@ jobs: cp -r ../frontend/playwright-report/* . # Committing and pushing the changes git add . - git -c user.name='github-actions[bot]' -c user.email='github-actions[bot]@users.noreply.github.com' commit -m "Update Playwright report" + git commit -m "Update Playwright report" git push origin gh-pages --force - name: Upload Playwright report