Skip to content

Commit 9e521f4

Browse files
committed
feat: support config as dir path only
1 parent af742ef commit 9e521f4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/dbt_jobs_as_code/cloud_yaml_mapping/change_set.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ def build_change_set(
188188
CONFIG is the path to your jobs.yml config file.
189189
"""
190190
# Get list of files matching the glob pattern
191+
if os.path.isdir(config):
192+
config = os.path.join(config, "**/*.yml")
191193
config_files = glob.glob(config)
192194
if not config_files:
193195
logger.error(f"No files found matching pattern: {config}")

0 commit comments

Comments
 (0)