From 59a902b731015bd9332b090d62808525900a5aad Mon Sep 17 00:00:00 2001 From: MaryWylde Date: Mon, 27 Apr 2026 15:46:22 +0400 Subject: [PATCH] chore: change var to secret on workflow --- .github/workflows/playwright-scheduled.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/playwright-scheduled.yml b/.github/workflows/playwright-scheduled.yml index af94cce..20085f3 100644 --- a/.github/workflows/playwright-scheduled.yml +++ b/.github/workflows/playwright-scheduled.yml @@ -60,8 +60,8 @@ jobs: # Suggested setup: # If the environment needs auth headers or cookies to reach the app, # add those as repo secrets and wire them through `env:` here. - PLAYWRIGHT_STAGING_URL: ${{ vars.PLAYWRIGHT_STAGING_URL }} - PLAYWRIGHT_PRODUCTION_URL: ${{ vars.PLAYWRIGHT_PRODUCTION_URL }} + PLAYWRIGHT_STAGING_URL: ${{ secrets.PLAYWRIGHT_STAGING_URL }} + PLAYWRIGHT_PRODUCTION_URL: ${{ secrets.PLAYWRIGHT_PRODUCTION_URL }} # Disable the webServer block in playwright.config.ts — in CI we run # against a deployed URL, never against a freshly-spawned `yarn dev`. PLAYWRIGHT_NO_SERVER: '1' @@ -91,7 +91,7 @@ jobs: URL="$PLAYWRIGHT_STAGING_URL" fi if [ -z "$URL" ]; then - echo "::error ::Base URL for environment '$ENV_INPUT' is not configured. Set the PLAYWRIGHT_${ENV_INPUT^^}_URL repository variable." + echo "::error ::Base URL for environment '$ENV_INPUT' is not configured. Set the PLAYWRIGHT_${ENV_INPUT^^}_URL repository secret." exit 1 fi echo "base_url=$URL" >> "$GITHUB_OUTPUT"