From 39cc07de305a1edf5f1957d65e949f06607d3d47 Mon Sep 17 00:00:00 2001 From: shishu314-alt Date: Thu, 16 Oct 2025 14:33:41 -0400 Subject: [PATCH] fix(infra) - Remove e2e maintainer label from e2e workflow (#11028) Co-authored-by: shishu314 --- .github/workflows/e2e.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 40feb87df9..0a196ecd33 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -9,9 +9,7 @@ on: branches: - 'main' - 'release/**' - # This will run for PRs from forks when a label is added. pull_request_target: - types: ['labeled'] merge_group: workflow_dispatch: inputs: @@ -46,8 +44,8 @@ jobs: (github.event_name == 'push' || github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' || - (github.event.pull_request.head.repo.full_name == github.repository) || - (github.event.label.name == 'maintainer:e2e:ok')) + (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || + (github.event_name == 'pull_request_target')) runs-on: 'gemini-cli-ubuntu-16-core' strategy: fail-fast: false @@ -108,8 +106,8 @@ jobs: (github.event_name == 'push' || github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' || - (github.event.pull_request.head.repo.full_name == github.repository) || - (github.event.label.name == 'maintainer:e2e:ok')) + (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || + (github.event_name == 'pull_request_target')) runs-on: 'macos-latest' steps: - name: 'Checkout (fork)' @@ -157,8 +155,8 @@ jobs: (github.event_name == 'push' || github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' || - (github.event.pull_request.head.repo.full_name == github.repository) || - (github.event.label.name == 'maintainer:e2e:ok')) + (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || + (github.event_name == 'pull_request_target')) runs-on: 'gemini-cli-windows-16-core' continue-on-error: true @@ -227,8 +225,8 @@ jobs: github.event_name == 'push' || github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' || - (github.event.pull_request.head.repo.full_name == github.repository) || - (github.event.label.name == 'maintainer:e2e:ok') + (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || + (github.event_name == 'pull_request_target') ) needs: - 'e2e_linux' @@ -237,8 +235,8 @@ jobs: steps: - name: 'Check E2E test results' run: | - if [[ (${{ needs.e2e_linux.result }} != 'success' && ${{ needs.e2e_linux.result }} != 'skipped') || \ - (${{ needs.e2e_mac.result }} != 'success' && ${{ needs.e2e_mac.result }} != 'skipped') ]]; then + if [[ ${{ needs.e2e_linux.result }} != 'success' || \ + ${{ needs.e2e_mac.result }} != 'success' ]]; then echo "One or more E2E jobs failed." exit 1 fi