From c3fd90d7bce70983937b958748ade910d1362d35 Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Thu, 31 Jul 2025 16:37:41 -0700 Subject: [PATCH] use gh pr view --- .github/workflows/record-integration-tests.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/record-integration-tests.yml b/.github/workflows/record-integration-tests.yml index 300af6bd0..931fa2957 100644 --- a/.github/workflows/record-integration-tests.yml +++ b/.github/workflows/record-integration-tests.yml @@ -49,10 +49,12 @@ jobs: echo "test-types=$TEST_TYPES" >> $GITHUB_OUTPUT modes_array=() - if [[ ${{ github.event.pull_request.labels.*.name }} == *"re-record-vision-tests"* ]]; then + labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name') + echo "labels=$labels" + if [[ $labels == *"re-record-vision-tests"* ]]; then modes_array+=("vision") fi - if [[ ${{ github.event.pull_request.labels.*.name }} == *"re-record-tests"* ]]; then + if [[ $labels == *"re-record-tests"* ]]; then modes_array+=("non-vision") fi matrix_modes=$(jq -n -c '$ARGS.positional' --jsonargs -- "${modes_array[@]}")