Skip to content

Commit

Permalink
favor models builts in db
Browse files Browse the repository at this point in the history
  • Loading branch information
valoumiaou committed Sep 20, 2024
1 parent 7bff95b commit 1d546a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/reusable_dbt_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
dbt test --store-failures -s "state:modified" \
--exclude test_name:relationships config.materialized:incremental \
--profile CI --target $ENV_SHORT_NAME --defer \
--state env-run-artifacts --favor-state \
--state env-run-artifacts \
--vars "{'CI_MATERIALIZATION':'view','ENV_SHORT_NAME':'$ENV_SHORT_NAME'}"
- name: "Post to a Slack channel"
if: ${{ inputs.NOTIF_CHANNEL_ID != '' && failure() }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scripts/run_dbt_changed_models.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dbt_run_changed_models() {
echo "no models were modified"
else
echo "Running models: ${models}"
dbt run --model $models --profile CI --target $ENV_SHORT_NAME --defer --state env-run-artifacts --favor-state --vars "{'CI_MATERIALIZATION':'view','ENV_SHORT_NAME':'$ENV_SHORT_NAME'}" --exclude tag:failing_ci
dbt run --model $models --profile CI --target $ENV_SHORT_NAME --defer --state env-run-artifacts --vars "{'CI_MATERIALIZATION':'view','ENV_SHORT_NAME':'$ENV_SHORT_NAME'}" --exclude tag:failing_ci
fi
}

Expand Down

0 comments on commit 1d546a0

Please sign in to comment.