From 52c10f59d15f23b3f56cd5ae9ab3efb4adacde15 Mon Sep 17 00:00:00 2001 From: Ilia Demianenko Date: Fri, 9 Oct 2026 15:40:29 -0600 Subject: [PATCH] Fix the merge gate on main --- .github/workflows/flow.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/flow.yml b/.github/workflows/flow.yml index 0c6899c07..606091362 100644 --- a/.github/workflows/flow.yml +++ b/.github/workflows/flow.yml @@ -231,13 +231,17 @@ jobs: FLOW_TESTS_RDS_IAM_AUTH_SKIP=false secrets: inherit + # pull_request and pull_request_target both trigger this workflow, but only one runs tests. + # Give the other run a different check name so its skipped tests cannot satisfy the required check. + # This job must always run because GitHub does not evaluate dynamic names for skipped jobs. flow_tests_passed: - name: All flow test jobs succeeded + name: ${{ needs.gate.result != 'skipped' && 'All flow test jobs succeeded' || 'Flow tests not run for this event' }} needs: [gate, unit_tests, test_selection_coverage, flow_test] - if: always() && needs.gate.result != 'skipped' + if: always() runs-on: ubuntu-latest steps: - - env: + - if: needs.gate.result != 'skipped' + env: RESULTS: ${{ toJSON(needs) }} run: | echo "$RESULTS" | jq -r 'to_entries[] | "\(.key): \(.value.result)"'