diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index e36e2a4859..101725f513 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -351,7 +351,7 @@ jobs: permissions: actions: write needs: tear-down - if: ${{ (github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'teamsfx-bot/TeamsFx')) && failure() && github.run_attempt < 5 }} + if: ${{ (github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.cases == '') || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'teamsfx-bot/TeamsFx')) && failure() && github.run_attempt < 5 }} runs-on: ubuntu-latest steps: - name: rerun diff --git a/.github/workflows/ui-test.yml b/.github/workflows/ui-test.yml index cc507dee18..ac0edcbf49 100644 --- a/.github/workflows/ui-test.yml +++ b/.github/workflows/ui-test.yml @@ -541,7 +541,7 @@ jobs: permissions: actions: write needs: main - if: ${{ ((github.event_name == 'workflow_dispatch' && github.event.inputs.test-case == '') || github.event_name == 'schedule') && failure() && github.run_attempt < 5 }} + if: ${{ ((github.event_name == 'workflow_dispatch' && github.event.inputs.test-case == '') || github.event_name == 'schedule') && failure() && github.run_attempt < 5 }} runs-on: ubuntu-latest steps: - name: trigger rerun workflow