@@ -31,6 +31,10 @@ inputs:
3131 snowflake-target-database :
3232 description : The snowflake target database to use
3333 required : true
34+ additional_flag :
35+ description : Additional flags to pass to the dbt command
36+ required : false
37+ default : ' '
3438
3539runs :
3640 using : " composite"
@@ -54,10 +58,10 @@ runs:
5458 dbt seed --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }} --exclude path:seeds/unit_tests --full-refresh
5559 if(Test-Path -Path ".\manifest.json" -PathType Leaf) {
5660 echo " ==> Previous Manifest file found, running dbt run for release"
57- dbt run -s state:modified --defer --state . --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }} --exclude tag:unit_test
61+ dbt run -s state:modified --defer --state . --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }} --exclude tag:unit_test ${{ inputs.additional_flag }}
5862 } else {
5963 echo " ==> No Previous Manifest file found, running dbt run fo release"
60- dbt run --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }} --exclude tag:unit_test
64+ dbt run --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }} --exclude tag:unit_test ${{ inputs.additional_flag }}
6165 }
6266 working-directory : ${{ inputs.working-directory }}
6367 env :
@@ -77,10 +81,10 @@ runs:
7781 dbt seed --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }} --full-refresh
7882 if(Test-Path -Path ".\manifest.json" -PathType Leaf) {
7983 echo " ==> Previous Manifest file found, running dbt run for unit tests"
80- dbt run -s state:modified --defer --state . --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }}
84+ dbt run -s state:modified --defer --state . --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }} ${{ inputs.additional_flag }}
8185 } else {
8286 echo " ==> No Previous Manifest file found, running dbt run for unit tests"
83- dbt run --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }}
87+ dbt run --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }} ${{ inputs.additional_flag }}
8488 }
8589
8690 working-directory : ${{ inputs.working-directory }}
0 commit comments