From 567f63f02b020664bc67ba2b7c139a8ed8869c9e Mon Sep 17 00:00:00 2001 From: Jean Cochrane Date: Thu, 3 Aug 2023 12:58:13 -0500 Subject: [PATCH] Try a different quoting scheme for RUN_CMD and TEST_CMD in build_and_test_dbt workflow --- .github/workflows/build_and_test_dbt.yaml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build_and_test_dbt.yaml b/.github/workflows/build_and_test_dbt.yaml index dd77b3eb2..b6aafb485 100644 --- a/.github/workflows/build_and_test_dbt.yaml +++ b/.github/workflows/build_and_test_dbt.yaml @@ -21,10 +21,6 @@ jobs: - name: Install dbt requirements uses: ./.github/actions/install_dbt_requirements - - name: Test dbt installation - run: dbt --help - working-directory: ${{ env.PROJECT_DIR }} - - name: Load environment variables uses: ./.github/actions/load_environment_variables @@ -69,8 +65,8 @@ jobs: name: Set command args to build/test modified resources run: | { - echo "RUN_CMD='dbt run --target $TARGET -s state:modified --state target/'"; - echo "TEST_CMD='dbt test --target $TARGET -s state:modified --state target/'"; + echo "RUN_CMD=dbt\ run\ --target\ $TARGET\ -s\ state:modified\ --state\ target/"; + echo "TEST_CMD=dbt\ test\ --target\ $TARGET\ -s\ state:modified\ --state\ target/"; } >> "$GITHUB_ENV" shell: bash @@ -78,8 +74,8 @@ jobs: name: Set command args to build/test all resources run: | { - echo "RUN_CMD='dbt run --target $TARGET'"; - echo "TEST_CMD='dbt test --target $TARGET'"; + echo "RUN_CMD=dbt\ run\ --target\ $TARGET"; + echo "TEST_CMD=dbt\ test\ --target\ $TARGET"; } >> "$GITHUB_ENV" shell: bash