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 }}";