Skip to content

Commit 7219d69

Browse files
committed
fix: use macOS-compatible grep regex in setup-playwright
macOS grep doesn't support -P (Perl regex) flag. Use -E (extended regex) instead.
1 parent 42330c4 commit 7219d69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/actions/setup-playwright/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ runs:
1212
id: playwright-version
1313
shell: bash
1414
run: |
15-
# Extract Playwright version from bun.lock
16-
VERSION=$(grep -A1 '"playwright":' bun.lock | grep -oP '"\K[0-9]+\.[0-9]+\.[0-9]+' | head -1)
15+
# Extract Playwright version from bun.lock (macOS-compatible regex)
16+
VERSION=$(grep -A1 '"playwright":' bun.lock | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)
1717
echo "version=$VERSION" >> $GITHUB_OUTPUT
1818
echo "Playwright version: $VERSION"
1919

0 commit comments

Comments
 (0)