Skip to content

Commit

Permalink
bump GHA syntax for lightdash
Browse files Browse the repository at this point in the history
  • Loading branch information
luutuankiet committed Nov 24, 2024
1 parent 4dc52b3 commit b2d16db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/slim_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: echo "PR_schema=${var_schema}" >> $GITHUB_ENV
if: steps.PR.outputs.pr_found == 'true'
env:
var_schema: '"schema_name": "ci_PR_${{ steps.PR.outputs.number }}"'
var_schema: '{"schema_name": "ci_PR_${{ steps.PR.outputs.number }}"}'


- uses: actions/checkout@v3
Expand Down Expand Up @@ -77,15 +77,13 @@ jobs:
run: npm install -g "@lightdash/cli@${{ steps.version.outputs.value }}" || npm install -g @lightdash/cli@latest




- name: dbt build models
run: dbt build --target ci --vars "$PR_schema"
run: dbt build --target ci --vars '"$PR_schema"'


- name: validate LD
id: validate-lightdash
run: lightdash validate --target ci --vars "$PR_schema"
run: lightdash validate --target ci --vars '"$PR_schema"'
env:
LIGHTDASH_API_KEY: ${{ secrets.LIGHTDASH_API_KEY }}
LIGHTDASH_PROJECT: ${{ secrets.LIGHTDASH_PROJECT }}
Expand Down
2 changes: 1 addition & 1 deletion dbt_project/profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ todo_analytics:
user: "{{env_var('DW_USER')}}"
password: "{{env_var('DW_PASSWORD')}}"
dbname: "{{env_var('DW_DBNAME')}}"
schema: "{{ var('schema_name', 'ci') }}"
schema: "{{var('schema_name', 'ci')}}"
sslmode: disable
threads: 12
prod:
Expand Down

0 comments on commit b2d16db

Please sign in to comment.