From f4a9b976a0c5ff593acab549964683c69e689a1b Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Thu, 31 Jul 2025 16:43:35 -0700 Subject: [PATCH] foo --- .github/workflows/record-integration-tests.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/record-integration-tests.yml b/.github/workflows/record-integration-tests.yml index 8d44b0779..ef2aefd05 100644 --- a/.github/workflows/record-integration-tests.yml +++ b/.github/workflows/record-integration-tests.yml @@ -57,9 +57,16 @@ jobs: if [[ $labels == *"re-record-tests"* ]]; then modes_array+=("non-vision") fi - matrix_modes=$(jq -n -c '$ARGS.positional' --jsonargs -- "${modes_array[@]}") + + # Convert to JSON array + if [ ${#modes_array[@]} -eq 0 ]; then + matrix_modes="[]" + else + matrix_modes=$(printf '%s\n' "${modes_array[@]}" | jq -R -s -c 'split("\n")[:-1]') + fi echo "matrix_modes=$matrix_modes" echo "matrix-modes=$matrix_modes" >> $GITHUB_OUTPUT + env: GH_TOKEN: ${{ github.token }}