Skip to content

Commit 1067c9d

Browse files
committed
Workflow: Separate marking repo safe into a step
1 parent a3adbe4 commit 1067c9d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/playwright.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,14 @@ jobs:
4848
go-version: '1.24.6'
4949
- name: Install dependencies
5050
run: cd tests && npm ci
51+
- name: Mark repository as safe
52+
run: git config --global --add safe.directory /__w/nginx-hugo-theme/nginx-hugo-theme
5153
- name: Run Playwright tests
5254
id: test-ui
5355
if: ${{ runner.os == 'Linux' }}
5456
env:
5557
HOME: /root
5658
run: |
57-
git config --global --add safe.directory /__w/nginx-hugo-theme/nginx-hugo-theme
5859
cd tests && npx playwright test | tee output.log
5960
if grep -q "failed" output.log; then
6061
echo "Playwright tests failed. Please view the Playwright report to see full error."

0 commit comments

Comments
 (0)