From e0edbf4becdfa2c6c95d4ba0a2638a8c0b1efd39 Mon Sep 17 00:00:00 2001 From: Nieky Allen Date: Tue, 11 Jul 2023 19:37:51 -0500 Subject: [PATCH] update action workflow to be branch agnostic --- .github/workflows/web_ci_workflow.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/web_ci_workflow.yml b/.github/workflows/web_ci_workflow.yml index cf86144..75fb370 100644 --- a/.github/workflows/web_ci_workflow.yml +++ b/.github/workflows/web_ci_workflow.yml @@ -1,7 +1,8 @@ name: Playwright Tests + on: - push: - branches: [main, alpha] + deployment_status: + jobs: test: timeout-minutes: 20 @@ -19,9 +20,8 @@ jobs: shell: bash env: STAGE: ${{ github.ref_name }} - run: | - if [[ $STAGE == "alpha" ]]; then BASE_URI="https://alpha.deadrop.io"; else BASE_URI="https://deadrop.io"; fi - CI=true TEST_URI=$BASE_URI yarn web playwright test --trace on + BASE_URL: ${{ github.event.deployment_status.target_url }} + run: CI=true TEST_URI=$BASE_URL yarn web playwright test --trace on - uses: actions/upload-artifact@v3 if: always() with: