Skip to content

Commit

Permalink
build: use BASE_URL env var for testing on preview deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
field123 committed Nov 17, 2023
1 parent d48cdec commit 998f7d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/generate-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ on:
branches-ignore:
- main
- changeset-release/main
deployment_status:


concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
generate-examples:
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success'
name: Create latest examples
runs-on: ubuntu-latest
outputs:
Expand Down Expand Up @@ -160,6 +163,8 @@ jobs:
run: pnpm test:e2e
id: examples-e2e-tests
continue-on-error: true
env:
BASE_URL: ${{ github.event.deployment_status.environment_url }}

- name: Upload test results
if: always()
Expand Down

0 comments on commit 998f7d6

Please sign in to comment.