Skip to content

Commit b64a822

Browse files
committed
fix(ci): update git safe directory
1 parent 4616904 commit b64a822

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/update-screenshots.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
container:
1818
image: mcr.microsoft.com/playwright:v1.56.0-noble
19+
options: --user 1001
1920
steps:
2021
- name: Add reaction to comment
2122
uses: peter-evans/create-or-update-comment@v4
@@ -43,6 +44,7 @@ jobs:
4344
with:
4445
ref: ${{ fromJson(steps.get-pr.outputs.result).ref }}
4546
token: ${{ secrets.GITHUB_TOKEN }}
47+
set-safe-directory: ${{ github.workspace }}
4648

4749
- uses: actions/setup-node@v4
4850
with:
@@ -65,7 +67,6 @@ jobs:
6567

6668
- name: Commit and push changes
6769
run: |
68-
git config --global --add safe.directory /__w/${{ github.repository }}/${{ github.repository }}
6970
git config --global user.name "github-actions[bot]"
7071
git config --global user.email "github-actions[bot]@users.noreply.github.com"
7172
git add demo/e2e/screenshot.spec.ts-snapshots/

0 commit comments

Comments
 (0)