From ada5092d23f7b3fcfd960b5250b0a024faa7543d Mon Sep 17 00:00:00 2001 From: Mike Drob Date: Mon, 21 Jul 2025 13:19:21 -0500 Subject: [PATCH] Move conditional setup logic from bash to actions --- .github/workflows/macos_tests.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/macos_tests.yml b/.github/workflows/macos_tests.yml index 5876ec6fc1..fab9cf2c24 100644 --- a/.github/workflows/macos_tests.yml +++ b/.github/workflows/macos_tests.yml @@ -312,10 +312,8 @@ jobs: persist-credentials: false submodules: true - name: Setup command - run: | - if [ -n "${{ matrix.config.setup_command }}" ]; then - bash -c "${{ matrix.config.setup_command }}" - fi + if: ${{ matrix.config.setup_command != '' }} + run: bash -c "${{ matrix.config.setup_command }}" - name: Swift build run: | if [ -n "${{ matrix.config.build_arguments_override }}" ]; then