From 2da6f5b3b15c6f3ea7a20db8cad1d39aee6bd1e1 Mon Sep 17 00:00:00 2001 From: Keith Williams Date: Sun, 21 Dec 2025 12:54:35 -0300 Subject: [PATCH] fix: remove labeled trigger to prevent workflow reruns on non-E2E labels (#26099) When any label is added to a PR, the workflow was re-running and causing issues because the E2E check would fail for non-ready-for-e2e labels. This change removes 'labeled' from the trigger types entirely. Users can now: 1. Add the ready-for-e2e label to a PR 2. Click 'Re-run all jobs' in GitHub Actions UI to trigger E2E tests This is simpler and avoids the complexity of trying to maintain previous check status when non-E2E labels are added. Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .github/workflows/pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 09e0144902..44063ae6c7 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -2,7 +2,7 @@ name: PR Update on: pull_request_target: - types: [opened, synchronize, reopened, labeled] + types: [opened, synchronize, reopened] branches: - main - gh-actions-test-branch @@ -57,7 +57,7 @@ jobs: permissions: pull-requests: read outputs: - run-e2e: ${{ steps.check-if-pr-has-label.outputs.run-e2e == 'true' && (github.event.action != 'labeled' || github.event.label.name == 'ready-for-e2e') }} + run-e2e: ${{ steps.check-if-pr-has-label.outputs.run-e2e == 'true' }} steps: - name: Check if PR exists with ready-for-e2e label for this SHA id: check-if-pr-has-label