From 0c99ea85dc7611850fc04f0de4af54cf676eb7a8 Mon Sep 17 00:00:00 2001 From: Pritam Sawant Date: Wed, 29 Jun 2022 15:55:17 +0530 Subject: [PATCH] Update test run condition for workflow_dispatch --- .github/workflows/e2e-triggered.yml | 6 +++--- .github/workflows/e2e.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/e2e-triggered.yml b/.github/workflows/e2e-triggered.yml index 399f46441..001d10554 100644 --- a/.github/workflows/e2e-triggered.yml +++ b/.github/workflows/e2e-triggered.yml @@ -46,10 +46,10 @@ jobs: restore-keys: | ${{ runner.os }}-maven-${{ github.workflow }} - name: Run required e2e tests - if: ${{ github.event.pull_request.merged == false}} + if: ${{ github.event_name != 'workflow_dispatch' && github.event.pull_request.merged == false}} run: python3 e2e/src/main/scripts/run_e2e_test.py TestRunnerRequired.java - - name: Run all e2e tests if PR is merged - if: ${{ github.event.pull_request.merged == true}} + - name: Run all e2e tests + if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true}} run: python3 e2e/src/main/scripts/run_e2e_test.py - name: Upload report uses: actions/upload-artifact@v2.2.4 diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 3082bb6ba..6104a0843 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -58,10 +58,10 @@ jobs: restore-keys: | ${{ runner.os }}-maven-${{ github.workflow }} - name: Run required e2e tests - if: ${{ github.event.pull_request.merged == false}} + if: ${{ github.event_name != 'workflow_dispatch' && github.event.pull_request.merged == false}} run: python3 e2e/src/main/scripts/run_e2e_test.py TestRunnerRequired.java - - name: Run all e2e tests if PR is merged - if: ${{ github.event.pull_request.merged == true}} + - name: Run all e2e tests + if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true}} run: python3 e2e/src/main/scripts/run_e2e_test.py - name: Upload report uses: actions/upload-artifact@v2.2.4