diff --git a/.github/workflows/generate-examples.yml b/.github/workflows/generate-examples.yml index 3515e80e..abeae91e 100644 --- a/.github/workflows/generate-examples.yml +++ b/.github/workflows/generate-examples.yml @@ -5,6 +5,8 @@ on: branches-ignore: - main - changeset-release/main + deployment_status: + concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -12,6 +14,7 @@ concurrency: jobs: generate-examples: + if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' name: Create latest examples runs-on: ubuntu-latest outputs: @@ -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()