@@ -31,6 +31,10 @@ inputs:
31
31
snowflake-target-database :
32
32
description : The snowflake target database to use
33
33
required : true
34
+ additional_flag :
35
+ description : Additional flags to pass to the dbt command
36
+ required : false
37
+ default : ' '
34
38
35
39
runs :
36
40
using : " composite"
@@ -54,10 +58,10 @@ runs:
54
58
dbt seed --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }} --exclude path:seeds/unit_tests --full-refresh
55
59
if(Test-Path -Path ".\manifest.json" -PathType Leaf) {
56
60
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 }}
58
62
} else {
59
63
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 }}
61
65
}
62
66
working-directory : ${{ inputs.working-directory }}
63
67
env :
@@ -77,10 +81,10 @@ runs:
77
81
dbt seed --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }} --full-refresh
78
82
if(Test-Path -Path ".\manifest.json" -PathType Leaf) {
79
83
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 }}
81
85
} else {
82
86
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 }}
84
88
}
85
89
86
90
working-directory : ${{ inputs.working-directory }}
0 commit comments