diff --git a/.github/workflows/android-e2e-maestro.yml b/.github/workflows/android-e2e-maestro.yml index 2415d287100..c867604961e 100644 --- a/.github/workflows/android-e2e-maestro.yml +++ b/.github/workflows/android-e2e-maestro.yml @@ -9,7 +9,8 @@ on: jobs: e2e-tests: - if: ${{ github.event.workflow_run.conclusion == 'success' }} + # Run for manual/scheduled triggers, or only on a successful build when chained from the build workflow. + if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest # Use ubuntu-latest for better Android emulator support timeout-minutes: 30 strategy: diff --git a/.github/workflows/ios-e2e-maestro.yml b/.github/workflows/ios-e2e-maestro.yml index b8fc354023d..0fa00db4654 100644 --- a/.github/workflows/ios-e2e-maestro.yml +++ b/.github/workflows/ios-e2e-maestro.yml @@ -8,7 +8,8 @@ on: workflow_dispatch: # Allows you to trigger the workflow manually from the Actions tab jobs: e2e-tests: - if: ${{ github.event.workflow_run.conclusion == 'success' }} + # Run for manual/scheduled triggers, or only on a successful build when chained from the build workflow. + if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }} runs-on: macos-26 # iOS simulators require macOS runners timeout-minutes: 45 strategy: