From 4ad04d1d062c2fbe66a975f668311706fa7fec56 Mon Sep 17 00:00:00 2001 From: luutuankiet Date: Sun, 24 Nov 2024 07:11:46 +0000 Subject: [PATCH] bump slim CI GHA --- .github/workflows/slim_CI.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/slim_CI.yml b/.github/workflows/slim_CI.yml index a8db975..6dd8850 100644 --- a/.github/workflows/slim_CI.yml +++ b/.github/workflows/slim_CI.yml @@ -5,8 +5,6 @@ on: push: branches-ignore: [ "main", "master"] -env: - TARGET_SCHEMA: dev jobs: validate_dbt_models: @@ -67,9 +65,19 @@ jobs: - name: Install npm dependencies run: npm install -g "@lightdash/cli@${{ steps.version.outputs.value }}" || npm install -g @lightdash/cli@latest + - uses: jwalton/gh-find-current-pr@master + id: findPr + # This will echo "Your PR is 7", or be skipped if there is no current PR. + - run: echo 'PR="${PR}"' >> $GITHUB_ENV + if: success() && steps.findPr.outputs.number + env: + PR: ${{ steps.findPr.outputs.pr }} + - name: validate dbt models - run: dbt build + run: dbt build --target ci --args "$arg_PR" + env: + arg_PR: "{'schema_name': '$PR'}" - name: validate LD