From 03b3c6da51246ef6f97ebbb4cb98e109aa0533e2 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Wed, 25 Jun 2025 14:09:42 +0800 Subject: [PATCH] don't reinstall playwright if the cache was hit --- .github/actions/setup-playwright/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup-playwright/action.yml b/.github/actions/setup-playwright/action.yml index e75452075..e6614c63b 100644 --- a/.github/actions/setup-playwright/action.yml +++ b/.github/actions/setup-playwright/action.yml @@ -2,7 +2,7 @@ name: "Setup Playwright" description: "Setup Playwright with caching, using npm (should already be installed)" inputs: working-directory: - description: Specifies the working directory where the command is run. + description: Specifies the working directory for the Playwright installation. default: . runs: using: "composite" @@ -21,7 +21,7 @@ runs: key: playwright-${{ runner.os }}-${{ env.PLAYWRIGHT_VERSION }} - name: Install Playwright dependencies + if: steps.playwright-cache.outputs.cache-hit != 'true' shell: bash run: npx playwright install --with-deps --only-shell working-directory: ${{ inputs.working-directory }} -