From 5457b09fe146e3b82ed82a49c9fdd1892c72ff63 Mon Sep 17 00:00:00 2001 From: shashwata Date: Mon, 1 Apr 2024 13:11:05 +0600 Subject: [PATCH] update yml --- .github/workflows/e2e_api_tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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