if-else statement in DAB YAML file

dc-rnc
Contributor

Hi.

Is it possible to use a "better" way to override the "git_branch" key's value on the right file (which is the resource-yaml-file)?

Or a different way, like an "if-else" statement. I'd like to have it all in the resource-yaml-file instead of overriding from the "databricks.yml" file.

dcrnc_0-1738601704946.png

Thank you. Regards.

Alberto_Umana
Databricks Employee
Databricks Employee

I think your approach is correct using targets and ${var.git_branch} variables. At the moment there is no if-else statement, but will investigate internally if there is a better way.

View solution in original post