Skip to content

Commit

Permalink
updated git config identity in step of workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aasimsyed committed May 18, 2024
1 parent 9eba355 commit add4da1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/pr_ci_playwright_e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,18 @@ 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
- name: Deploy Playwright Report to gh-pages
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
Expand All @@ -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
Expand Down

0 comments on commit add4da1

Please sign in to comment.