diff --git a/.github/workflows/e2e_api_tests.yml b/.github/workflows/e2e_api_tests.yml index caff3b79c8..9a9b43728c 100644 --- a/.github/workflows/e2e_api_tests.yml +++ b/.github/workflows/e2e_api_tests.yml @@ -184,7 +184,7 @@ jobs: # Run e2e tests - name: 🧪 Running the e2e tests id: e2e-test - if: success() || ${{ ( success() && (github.event_name == 'workflow_dispatch' && (github.event.inputs.testsuite == 'E2E' || github.event.inputs.testsuite == 'All'))) }} + if: success() && (github.event_name != 'workflow_dispatch' || ( github.event_name == 'workflow_dispatch' && (github.event.inputs.testsuite == 'E2E' || github.event.inputs.testsuite == 'All'))) timeout-minutes: 40 run: | cd tests/pw @@ -193,7 +193,7 @@ jobs: # Run API tests - name: 🧪 Running the api tests id: api-test - if: ${{ always() && steps.db-port.outcome == 'success' }} || ${{ ( always() && steps.db-port.outcome == 'success' && (github.event_name == 'workflow_dispatch' && (github.event.inputs.testsuite == 'API' || github.event.inputs.testsuite == 'All'))) }} + if: steps.db-port.outcome == 'success' && ( github.event_name != 'workflow_dispatch' || ( github.event_name == 'workflow_dispatch' && (github.event.inputs.testsuite == 'API' || github.event.inputs.testsuite == 'All'))) timeout-minutes: 5 run: | cd tests/pw