From d76a311f4eb842b8b90ea24e7f981b2043943284 Mon Sep 17 00:00:00 2001 From: Ethan Gardner Date: Mon, 1 Jul 2024 19:05:32 -0400 Subject: [PATCH] restore main check to action (#245) --- .github/workflows/_playwright.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/_playwright.yml b/.github/workflows/_playwright.yml index e1793c81..f3a13ccc 100644 --- a/.github/workflows/_playwright.yml +++ b/.github/workflows/_playwright.yml @@ -22,7 +22,7 @@ jobs: echo "Workflow triggered by actor '${{ github.actor }}''." - name: Determine E2E_ENDPOINT run: > - echo E2E_ENDPOINT=$(if [[ "${{ github.event_name }}" == "pull_request" ]]; then + echo E2E_ENDPOINT=$(if [[ "${{ github.event_name }}" == "pull_request" && "${{ github.head_ref }}" != "main" ]]; then echo "${{ vars.PREVIEW_URL }}/${{ github.head_ref }}"; else echo "${{ vars.MAIN_URL }}";