From 053b8b5c0a05e9c78522bee22ded4c73b35ee2f5 Mon Sep 17 00:00:00 2001 From: Keith Williams Date: Wed, 2 Jul 2025 21:21:43 -0300 Subject: [PATCH] fix: resolve race condition in ready-for-e2e label checking (#22222) - Simplify conditional logic in check-label job output - Remove redundant condition that caused race condition - Maintain event filtering to only run when ready-for-e2e label is added - Fixes issue where workflow failed despite script finding the label correctly Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .github/workflows/pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 02fa8229f9..b7dc3afd9c 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -46,7 +46,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.action == 'labeled' && github.event.label.name == 'ready-for-e2e')) }} + run-e2e: ${{ steps.check-if-pr-has-label.outputs.run-e2e == 'true' && (github.event.action != 'labeled' || github.event.label.name == 'ready-for-e2e') }} steps: - name: Check if PR exists with ready-for-e2e label for this SHA id: check-if-pr-has-label