From ae5698c62171ac50aec93856e04047a1c27b4bc1 Mon Sep 17 00:00:00 2001 From: larabr <7375870+larabr@users.noreply.github.com> Date: Wed, 18 Sep 2024 12:32:58 +0200 Subject: [PATCH] CI: fix playwright version parsing Only look at direct dependency --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b61a727d..6744d4dc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -82,7 +82,7 @@ jobs: - name: Get Playwright version id: playwright-version run: | - PLAYWRIGHT_VERSION=$(npm ls playwright | grep playwright | sed 's/.*@//') + PLAYWRIGHT_VERSION=$(npm ls playwright --depth=0 | grep playwright | sed 's/.*@//') echo "version=$PLAYWRIGHT_VERSION" >> $GITHUB_OUTPUT - name: Check for cached browsers id: cache-playwright-browsers