From 74d0fee1259476cd29962ecae2181c7e13b3932b Mon Sep 17 00:00:00 2001 From: Sam Lord Date: Fri, 2 Dec 2022 16:27:41 +0000 Subject: [PATCH] Set a default environment for browser tests no issue --- .github/workflows/browser-tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/browser-tests.yml b/.github/workflows/browser-tests.yml index 54643cd1da..1fb716ef2b 100644 --- a/.github/workflows/browser-tests.yml +++ b/.github/workflows/browser-tests.yml @@ -27,6 +27,7 @@ jobs: timeout-minutes: 60 runs-on: ubuntu-latest if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/')) + environment: ${{ github.event.inputs.environment || "browser-tests-local" }} defaults: run: working-directory: ghost/core @@ -52,7 +53,7 @@ jobs: run: npx playwright install --with-deps - name: Build Admin - if: github.event.inputs.site_url == '' + if: github.event.inputs.environment == 'browser-tests-local' working-directory: ghost/admin run: yarn build:prod